What is: Child Theme?

What is: Child Theme?

In WordPress, a child theme is the counterpart to a parent theme. Creating themes is only for developers, so if you’re only interested in administering a WordPress website, then you won’t have to worry about parent or child themes.

 

When WordPress was first developed, there was no way to change or modify the theme. Then, after the ability to change themes was included, developers began wanting to make their own themes. WordPress made this easier to do by allowing child themes, which are copies of a parent theme that can then be modified.

 

For example, if you’re using a theme that you really like, but you want to make some changes, you can create a child theme. The child theme will inherit all the scripts, functionality, style, and abilities of the parent theme. The only difference will be the modifications that you make to the child theme.

 

The benefit of having a child theme is that any updates or modifications to the parent theme are immediately preserved in the child theme as well. For example, if a script in the parent theme is updated to patch a security hole, then the child theme, too, will automatically use the updated script.

 

To create a child theme, you must make a new folder in your themes directory. The first file in this new directory must be your CSS file (“style.css”). It’s usually a good idea to add a comment in this file noting the parent theme. You can then begin adding any customized files that you like for use in your child theme.

 

To see the child theme in action, it must be activated as your WordPress site’s theme. Any file or functionality not included in the child theme or overwritten by it will be taken from the parent theme.

The following two tabs change content below.

Jamie

My name is Jamie Spencer and I have spent the past 5 years building money making blogs. After growing tired of the 9-5, commuting and never seeing my family I decided that I wanted to make some changes and launched my first blog. Since then I have launched lots of successful niche blogs and after selling my survivalist blog I decided to teach other people how to do the same.
No Comments

Sorry, the comment form is closed at this time.