What is a WordPress child theme and why should I use one for website?

What is a WordPress Child Theme?

What is a WordPress child theme?

The WordPress team has done a great job of summing it up in their codex: http://codex.wordpress.org/Child_Themes. But I’ll dispense the knowledge in my own words just the same.

A child theme is so named for its relation to a parent theme. When a child theme is installed and activated it makes use of all of the files that are present for the parent theme EXCEPT for any files located within the child theme directory which have the same name and are in the same folder or sub-folder location. So, if you have a website template named home-template.php and you would like to modify its design or layout at the page level in some manner, all you would have to do is copy the file from the parent theme’s directory over to the child theme’s directory. Of course, if the file is located in a sub-folder within the parent theme, it will need to be placed within the same sub-folder within the child theme to function as desired.

Why? A child theme just seems like extra hassle.

Well, while child theme’s represent a bit of extra effort, there are distinct advantages to their use which make them indispensable in certain situations. The most popular reason would be for the purposes of preserving theme and file customizations while maintaining the ability to update the parent theme. As you may imagine, WordPress themes need to be updated from time to time. When an update is performed, all of the files that are present within the WordPress theme are overwritten with the new, base, default install files that are contained in the update. Therefore, any customizations that were made directly to the theme have been lost, or clobbered — overwritten. With a WordPress child theme in place taking care of any theme code modifications the parent theme is capable of being updated.

If you would like to setup your child theme yourself, here are some great instructions: http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme.

If you would like help with the setup of a child theme for your WordPress website please don’t hesitate to get in touch.

About Rick D'Haene

Rick D'Haene is a web developer, specializing in WordPress, with a degree in graphic and website design. Rick has extensive knowledge of internet marketing and organic search engine optimization (SEO). He and his lovely wife Melissa reside in Bellingham, Washington, and have a few fun pets to keep them company.

Find me here: Twitter /Facebook /Google+ /


  • ZaneReply

    I purchased a wordpress theme that didn’t come with a child theme. Should I ask the developer for one?

    • Rick D'HaeneReply

      Hi Zane,

      That would be a good place to start. It is odd that the developer would not have included a child theme along with the theme you purchased, so, without being disrespectful, I would wonder how much of a WordPress developer this individual is. If he / she cannot provide you with a child theme please do let me know. I can help you set one up and get you started.


Leave a comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.