WordPress is the most famous blogging platform available on the web. Lot of people love WordPress for it’s simple customization, plugins, themes and widgets. Your theme is heart of your WordPress blog. There are plenty of WordPress themes available on internet.
Why Should We Create a Child Theme ?
Often bloggers won’t satisfy with their themes. They want to customize or tweak the theme according to their convenience. We all know all WordPress themes get updates over sometime. So what happens when we update to newer version of the theme? When you update theme you will loose all changes that you have done to the theme and again you need to customize your blog’s theme. Another issue is when your doing some changes on primary theme sometimes your website may go down if anything goes wrong in the code. That’s why it is highly recommended to create child theme of your parent theme if you want to customize your theme. In this post we will explain how to create a child theme in the simplest way possible.
WordPress Child Theme Tutorial
Step 1 – Create an New Text Document on your desktop.
Step 2 – Now go to WordPress Child Themes webpage and copy the code that looks like in the below box. For example I am creating child theme for Twenty Thirteen Theme. You can change Theme Name, Theme URI etc. As you can see red colored one is the name of the theme, replace that with the name of the theme for which you want to create child theme.
Step 3 – Now paste the code in the New Text Document you created in step 1. Now in the Text Document under File click on Save As, give the File Name as style.css, select Save as type to All Files and finally click on save. Now you have created a CSS file.
Step 4 – Right click on the CSS file you created in the Step 3 and under 7 ZIP select add to Archive. Give the Zip file a name and select Archive type as Zip. Lastly click on Ok, this will create a zip file of your child theme which we can easily upload to the theme directory. If you don’t have the software download it here.
Step 5 – From your WordPress dashboard go to Appearance -> Themes, click on Install Themes and Click on Upload as shown in below pic1. Now choose the zip file you created and upload it. Now you can see a new child theme without image in your WordPress themes as shown in below pic2. Activate it and customize the Style.css file. This is how we create a child theme in WordPress.