Tag: WordPress Theming

Child Theme Doesn’t Look Like Parent Theme? Here’s The Fix

Child Theme Doesn’t Look Like Parent Theme? Here’s The Fix

You have just created a WordPress child theme. You followed closely the guide found on WordPress Codex as well as on WordPress developer theme handbook. But there seems to be a problem. Once you activated your child theme, it doesn't look like its parent theme. Shouldn't a child theme inherit everything from its parent theme? If so, why doesn't your child theme look exactly like the parent theme? Here's what to look for in order to fix this. There are two things you should check first: Have you copied custom css, widgets, theme options and configurations (including what you customized using WordPress customizer) from the parent theme over to the child theme? Have you successfully enqueued all the parent theme's stylesheets and set their dependencies (such as font awesome, bootstrap, etc) accordingly? Okay, let's go through all the above one by one. #1: Copy Parent Theme's Options Over To Child Theme Most WordPress themes these days have their own theme options page where users...
Read More
How To Override Buddypress Template Files

How To Override Buddypress Template Files

With Woocommerce, you override Woocommerce's default template files by creating a directory called 'woocommerce' inside your WordPress theme folder and placing all the template files inside that folder (preserving directories structure). So is there a way where you can do a similar thing with Buddypress in order to customize how Buddypress looks on the front end? Luckily, there is. The process is very similar. This is what you do: 1. The first thing to do is to have a folder named 'buddypress' in your WordPress theme root directory. With Buddypress though, you can also use the name 'community' for the directory instead of 'buddypress'. Use whichever you prefer, but make sure there is only one exists at a time. So your directory will look something like this: /wp-content/themes/awesome-theme/buddypress/ OR /wp-content/themes/awesome-theme/community/ 2. Now, all the Buddypress template files are located inside the following folder in the Buddypress plugin: /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/ Everything from here on is just like how you override Woocommerce template files. You copy the files inside the directory above...
Read More