Child Theme Instructions

Child themes make customizing your theme even easier. Being able to add custom css through the admin panel is great, but what it you need to change more? If you’ve ever edited php files, then you know how hard it can be to upgrade your theme later. Many times, you forgot what you edited and what needs to changed in the new theme. This can lead to lots of frustration and maybe a broken site.

Child themes solve these problems. A WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme. By activating a child theme, you ensure that changes you make to the template files are not overwritten when upgrading the main theme. It’s pure genius!

Using Child Themes

Here’s a simple plugin to create your own child theme. Any template files that you wish to edit should be copied to your child theme folder. Whatever changes you make will overwrite the files of the parent theme.

Layout Customization Hooks

When using a child theme, you can override certain functions (those wrapped in a

call) by defining them first in your child theme’s functions.php file. The child theme’s functions.php file is included before the parent theme’s file, so the child theme functions would be used.

Functions that are not pluggable (not wrapped in function_exists()) are instead attached to a filter or action hook. The hook can be removed by using remove_action() or remove_filter() and you can attach your own function to the hook.

see and