How To Create a Child Theme In WordPress

Child Theme in WordPress

Do you love to work with WordPress? And want to create a child theme in WordPress? So you can easily apply different functions and customization on the theme. But you don’t have much knowledge about child themes. Just stay with us today we will be going to tell you from head to toe about child theme in WordPress.

Firstly, we will tell you what is the parent and child theme, and it’s important and advantages and describe the whole process. Once you know basic knowledge about WordPress. And now you want to customize your theme. You should use a child theme because it has a lot of advantages.

You can also create Child Theme in WordPress manually. If you want to create child theme without plugin, then go to our this article.

What is the Parent Theme?

A parent theme is a complete package of files that required for the WordPress theme. And also have completed assets that need a theme to work.  Parent theme doesn’t use any function styling and other customization from other themes it has own.

What is the Child Theme?

A Child theme is a theme that inherits its functionality from the parent theme. A child theme gives an ability to change the appearance of your sites.

Why you should create a Child Theme in WordPress

A child theme is the best practice to customize your WordPress theme. For example, whenever you did the changes in parent theme itโ€™s worked completely. But when update the parent theme you had lost all changes you make. So child theme helps you to inherit all function appearance of your parent’s themes. And also allow you to customize and apply your own styling in it. As a result of this, you can easily upgrade your parent theme without losing any changes that you had made.

Importance of Child Theme In WordPress

Allow update parent theme without losing changes

A child theme inherits the function, features, styling from the parent theme. This allows you to modify your site using a child theme without even modify in the parent theme. Because of this, you can easily update your parent theme without losing any changes in your site and all the changes are saved in the child theme.

Allow you to extend the Functionality

As you know child theme inherits everything from the parent theme. And you can also add new features functionality and much more. Like if you want to create your own appearance and functionality in your WordPress site you need to write a lot of code. But with the help of the child theme, you just need to modify only selective area in the child theme.

Fallback safe in the WordPress site.

If you are creating a complete theme for your site you need to think about all the possible cases and code for them. But if you are working with a child theme and you forget to code for a specific case, then there is also the parent theme functionality available as the fallback option.

Creating a Child Theme in WordPress with Plugin

First, you need to install a plugin named “child Theme Configurator” and activate it. You can install and active it from add plugin option in WordPress dashboard and you can also download it from the WordPress site (link given in first line of the para) and upload it in the plugin in folder manually.

Plugin that will use to create child theme in WordPress

After the activation, you need to go its setting from the WordPress dashboard menu go to Tools >> Child themes.

Child Theme Configurator plugin area.

In the parent/child section, you will get different options. You can select any option as per your need.
We are going to check “Create a new child theme” because we are creating a new child theme. And select your parent theme in “Select a parent theme” option and click on the “Analyze” button. It will analysis your parent theme.

Selecting parent theme to analysis for generating child theme in WordPress

After clicking on the “analyze” button you will get the message that your theme will OK or not to generate a child theme. And also you will get different options below.

Message after analysis parent theme for child theme

In the fourth option, you need to provide the child theme folder name. Remember is not a child theme name.
In the fifth option, you have two options “primary style sheet” and “separate style sheet”. You can select as per your need but we prefer you to select “separate style sheet” so you can easily apply different changes.
And in the Sixth option, you need to select the “parent theme style sheet handling” option. We prefer you to select “Use the WordPress style queue”.

Configure Setting for Creating Child theme in WordPress

In the Seventh option, you will get the “Show/Hide child theme Attributes” button. Click on it so you can able to change the child theme attributes such as name, version, and etc.

Child Theme attributes button

Theme Attributes

In this section you will able to give your child theme name, theme website, Author name, author website, Theme description, theme tags, and version. You can provide anything you want.

provide Child Theme Attributes

In the eight options, you will get the checkbox. That will be asked for that you want to copy menus, widgets, and other Customize settings from parent theme to the child theme. If you want to copy all of this then checked the box. We prefer that you should check the box that would be good for your child’s theme.
And in the last option, you need to click on the “Create New Child Theme” button. After successfully done all the above instruction just click on the button.

last Step of Creating Child theme in WordPress

After clicking wait for a few seconds you will get the message that your child theme has been generated successfully.

Child Theme generated successful

Here you Successfully generated your Child Theme.

You can preview it and also can check the child theme from the theme option and can activate it.

Preview the Child Theme in WordPress

After successful activation, you can go to the “theme Editor” from “Appearance” options. Now you can see there are two files one is “theme function” and another is the style sheet. Now you modify and apply any changes as you want.
This plugin has more features like if you want to change any file that is in parent theme you can import it and will make changes on it. We will show you how.

Theme Editor of child theme

First, go to the “Child Theme Configuration” plugin setting. And click on the files option in the vertical tab menu, here you will see all the files that belong to your parent theme. Select the file that you want to import and click on “Copy Selected to Child Theme” Button. After a clicking wait for the few seconds, you will get the message “Child Theme Files Modified Successfully.” Now you can go and check in the Theme editor option.

importing files from parent theme to child theme
successfully imported file message

We hope this tutorial helped you to learn how to create child theme in WordPress website. If you have any queries feel free to comment you can also communicate with us on social media.
If you like this tutorial, then please like us on Facebook and Follow US on Twitter.

Written by 

Leave a Reply

1 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
Bhatti Recent comment authors
newest oldest most voted
Notify of

Nice knowledge ๐Ÿ‘