This post will answer the What? and Why? questions related to using a WordPress Child Theme. But before Why?, lets cover what a WordPress child theme is. WordPress, the best blogging and website tool available on the web, uses themes to control the look and feel of a website.

A theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog. These files are called template files. A Theme modifies the way the site is displayed, without modifying the underlying software.

A WordPress child theme is a theme that derives its functionality and style from another theme, called the parent theme.

[su_pullquote]In WordPress, a child theme is a theme that derives its functionality and style from another theme, called the parent theme.[/su_pullquote]

Creating a WordPress child theme is the industry-standard method of modifying an existing theme. If you’d like to customize a theme, especially a theme based on a framework (like Genesis, for example) the accepted approach is to use a child theme. A child theme is a separate theme and contains all of your specific customizations. The idea is that if the parent theme is ever updated (and WordPress is frequently), your modifications are not lost.
It is important to note that a theme framework is not an actual theme but rather a “drop-in” code library that is used to facilitate development of a Theme.

Child, Parent and Framework

A theme framework is not a stand-alone theme and cannot operate independent of a theme. Its library of functions is included (bootstrapped) in a theme’s files to quickly boost design and functionality of the new theme. Twitter Bootstrap is a popular example of a “drop-in” code library.

Twitter Bootstrap is a popular theme framework. Sandbox, Thematic and WP Framework are other examples of theme frameworks. A stand-alone or base theme is a Theme that has all of the necessary files to run as a separate install. Such a theme can operate independent of a parent theme. The TwentySixteen (currently the default) WordPress theme is an example of a stand-alone theme. It is a parent theme since child themes can be built upon it.

 

 

1. Retain your custom modifications.
Wordpress is constantly being updated and improved. It is one of the most attractive features. However If you modify a theme directly you will lose your customizations when WordPress is updated. By using a child theme you will ensure that your modifications are preserved.
2. More easily track your work on a specific project (and speed up development time on future projects. For developers a child theme, by keeping your changes separate, you can more easily track your work on a specific project.

3. Use of child themes is accepted industry practice.

 

Conclusion

As a professional developer, you should definitely follow industry standards (even if you are not, its a good practice). Creating child themes is an organized and productive way to use WordPress. If you’re still not convinced, consider this. One day you are going to ask a third party to fix a WordPress problem for you. Then you will have to hear: “Why didn’t you put your modifications in a child theme?”

JOIN KLEARVUE EMAIL LIST

Reader Interactions

Comments

  1. Paul Taubman says

    Great post! I remember when I first started, I modified a theme directly, meticulously tracking what changes I made so I could update the theme when an update came out.

    Clearly using a child theme handles this nicely! I was happy when I learned about them!

    Thanks for sharing!

  2. Debbie Hatch says

    Wow! I’ve customized a theme and lost changes when WordPress updated. It was frustrating!!! I’ve never heard of a child theme. Thanks so much for sharing! This is going to be invaluable.

  3. Chondra Rankin says

    Since I don’t know much about WordPress, this is a very intersting post for me! Thanks for making me further aware of other options!

  4. K Wayne says

    Using a child theme can save you a lot of headaches, help you learn about the WordPress core and it’s just a good practice. I am glad to know that this post helped someone. Thanks for reading!

  5. K Wayne says

    One of the things I love about WordPress is that you can open the hood and see how everything works. If that’s not your thing you don’t have to. Thanks for your comment!

Follow this blog

Get every new post delivered right to your inbox.