Creating a Child Theme

Originally published at: https://www.classicpress.net/blog/2019/06/27/creating-a-child-theme/

When performing changes to your theme, like changing up the template; adding functionality; or adding CSS, it is often advised to use a child theme. But how do you make a child theme? What even is a child theme? Why do you need this?

8 Likes

Just to mention that there are several great plugins that automate a lot of this.
https://wordpress.org/plugins/search/child+theme/

2 Likes

While that is true, I am always for using fewer plugins. Also, if you understand the process, you have better control over it.

4 Likes

And for the console-lovers like me :sweat_smile:

wp scaffold child-theme my-child-name --parent_theme=parent-theme-slug
4 Likes