In WordPress, a child theme is usually created to store user settings and preferences (such as code snippets in functions.php or CSS snippets in style.css. parent theme. When updating the original theme to a newer version, the child theme will be completely unaffected, so users still retain their customizations. If you are looking to personalize the current look, then quickly create a child theme.
For those who are not familiar with code, creating a child theme manually is difficult and takes a lot of work. However, don’t worry, because right now, I will show you how to create a child theme in just a few clicks.
Creating Child Theme in WordPress
The first thing you need to do is install and activate the plugin Child Theme Generator
Next, go to Settings => Child-Theme Gen. You will see the following interface:
- Parent theme: select the original theme for which you want to create the child theme.
- Heading: name the child theme. For example, I am using the parent theme PublishNow Pro, I will name its child theme “PublishNow Pro Child”.
- Description: write a description for the child theme, it’s best to write in English or Vietnamese without accents.
- Child Theme URL: link to the child theme introduction page.
- Author: the name of the author of the child theme.
- Author URL: link to the child theme’s introduction page.
- Version: the version of the child theme.
- Include GPL License: include GPL license.
Once done, click the Create new child theme button.
Almost immediately, a child theme is automatically created. If you want to activate this child theme, please tick the Activate child-theme and click the Finished button.
The rest of you is to access Appearance => Themes and proceed to customize the child theme only.
- After creating a child theme, you can disable and delete the Child Theme Generator plugin if no longer used.
- Some plugins with parent themes will be disabled when the child theme is created. You need to visit the Plugins section and re-enable them.
What method are you using to create a child theme in WordPress? Feel free to share it with us using the comment box below.