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:
Login to Cpanel.
Click on File Manager and access its Public_HTML folder.
Open this folder and look for wp-content.
Double-click the wp-content folder to open it.
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.
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.
Now, open the newly created folder. We assume that you named it theme-child.
In the theme-child folder, create a new blank file name it as style.css.
Now, edit the style.css file and add the below code:
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.
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.
I am a blogger, a consultant and the founder & owner of Choose Smart. I'm here to provide Internet Marketing services, Blogging tips, Wordpress tutorials. Also Web hosting & Web Safety advices and business tips and to help people with my recommendations.