How to Create Child Theme in WordPress? | If you are making major customize on your theme, better you create a child theme because if you update your theme to the latest version, your customization will not lose.
What is Child Theme?
Child theme is a theme act as a mirror reflection of a parent theme. Whatever you change and customize your theme, you must do it all on the child theme. So, when you update your theme to a new version, all your change will not lose because update version just affects to the parent theme. Not to the child theme.
Why Must You Create Child Theme During Customize?
As I am mention above, your customization will not lose if your theme gets the update. Another reason is, it can secure your theme from getting any issue. If you get any error, just deactivate your child theme, and your site will back to normal.
Create Child Theme
In this tutorial, I will show you two methods how you can create your child theme. Before you start, please check your theme Appearance >>> Themes. The activated current theme is the parent theme. For example, I will use Extra Theme as a parent theme.
So, let’s get it started.
Method #1. Create Manually
Step 1: Log into cPanel and navigate to wp-content >>> themes. Here, you must create a new folder. For example, extra-child.
Step 2: Create a file titled style.css. Then, copy the code below and paste into style.css
Step 3: Create functions.php file, then copy the code below and paste into the functions.php.
Step 4: Log into your WordPress and navigate to Appearance >>> Themes. Activate your child theme. Finish.
Method #2. Use Plugin
Step 1: Log into your WordPress. Navigate to Plugins >>> Add New. Search One-Click Child Theme plugin.
Step 2: Install the plugin.
Step 3: Navigate to Appearance >>> Themes, make sure the parent theme is activated (Ex: If you wish to use Twenty Seventeen as your theme, then Twenty Seventeen is your parent theme).
Step 4: Click on the theme thumbnail, then click on Child Theme.
Step 5: After that, you will be direct to child theme configuration page. Full fill Theme name, Description and author field. Then click Create Child button.
Step 6: Congrats! Now your child theme has successfully created.
In this tutorial, you have learned how to create a child theme. Make sure you practice this when you make any customize on your theme.
1,203 total views, 4 views today
If you like this article, then please FOLLOW to our Google+ and Facebook. Do not forget to check our services page for empowering your WordPress. If you find this post outdated or error, please contact us to fix it.