How to Create a wordpress child theme

wordpress child theme

Find out how to Create a WordPress Child Theme fast and easily.

A child theme gives you an ease of working with codes, styles, etc. without disturbing the parent theme. For example, you want to add some new functions in functions.php file or want to add some specific styles in the style.css file then you will not be required to edit these files in the parent theme. You can edit these files in the child theme. This way you can get the functionalities you want without playing with the original files in the parent theme.

In this post we will show you how to create a wordpress child theme in easy steps. Here are the steps to be followed:

  1. Login to Cpanel.
  2. Click on File Manager and access its Public_HTML folder.
  3. Open this folder and look for wp-content.
  4. Double-click the wp-content folder to open it.
  5. Now, double-click the themes folder and open it. In this folder, you may see many folders. Each of these folders is for a theme installed in your WordPress blog. Though, you can see many themes installed in your WordPress blog, only one of these is actually activated.
  6. Create a new folder inside the themes folder and give it an easy to remember name like theme-child. When creating the theme-child folder, give it 0755 permission.
  7. Now, open the newly created folder. We assume that you named it theme-child.
  8. In the theme-child folder, create a new blank file name it as style.css.
  9. Now, edit the style.css file and add the below code:
Template: my_parent_theme
Version: 0.1
@import url("../my_parent_theme_name/style.css");
  1. After the code is added, save the file. In the style.css file, we have recently created, my_parent_theme is the folder name (as you see in the themes folder) of the theme for which you have created the child theme. So, keep it the same otherwise results may be unexpected.
  2. Your Child theme has been created. You can now activate it by going to Appearance > Themes > Select theme-child > Activate it.

In the above process, we have created a simple child theme without any customization and extra features. We have called the style.css of the parent theme as well, which means when you activate the child theme, you will not see any change in your WordPress blog. You can now customize style.css file as per the styles you want. Add the customization code after import url.

Like style.css, you can create other files like functions.php file and many other php files in your child theme folder. To do this, we recommend copying the files from the parent theme and pasting in the child theme folder so that you do not break the folder structure. Once all required files are in the child theme folder, you can continue editing them.

If you have Genesis Framework you can read also how to install the Genesis Framework and a child theme.

This is how to create a WordPress Child Theme. When doing this, we suggest you to keep in mind that the files of parent theme will be ignored once its child theme is activated.

Access this link to see the tutorial for create a WordPress Child Theme.

Leave a Reply

Your email address will not be published. Required fields are marked *

About US | Terms and Conditions of Use | Privacy Policy | Affiliate disclosure
All original content on these pages is fingerprinted and certified by Digiprove