Create Child Theme In WordPress- Stepwise Guide

Create Child Theme In WordPress

Create Child Theme in wordpress. This blog would help you in sorting out all questions that arise in your mind regarding WordPress Child Theme, and you will be in aquaintance of the benefits of Child theme and helps in understanding why WordPress Child Theme should be used in Blogs or other wordpress stuffs.

Create Child Theme In WordPress
Create Child Theme In WordPress- Stepwise Guide

Lets start a stepwise guide for Creating Child Theme In wordpress. Before starting the guide, lets understand what’s Child Theme. As the name suggests, A wordpress Child Theme is a theme, where functionalities are inherited by another wordpress theme i.e. a Parent theme. In simple words, we can say that the existing theme’s functions, styles can be modified accordingly by the help of Child Theme. Most of the Users customize their wordpress themes but there are few who uses child theme, might be the reason as lack of understanding as what a child theme is or facing difficulties in how to create one.

Why Child Theme Should Be Used?

Suppose you want to modify the existing theme accordingly but without original theme to get affected, you can easily create a Child Theme which can be turned off later on and fall back to original again. The best part is, modification would be easy and original theme’s code would not be affected at all. This child theme would help you in making separate set of files, that can be customized accordingly without affecting the original theme and later if you want to switch back to the original theme, you can easily do so.

How To Create WordPress Child Theme?

Lets take an example for creating a Child Theme for WISTERIA Wordpress Theme.

FIRSTLY, Create A New Folder, all we need to do is creating a new folder for your child theme. As we know all themes are located in wp-content/ themes in wordpress installation. so create a new folder over there. You should always give name to Child Theme folder same as your original theme followed by -child.

For example my original theme name is Wisteria. the folder name can be WISTERIA-CHILD. This would be clear by the image given below.

new folder
create a new folder

SECONDLY, CREATE STYLE SHEET, second step which we need to do is, in that same location folder, we need to create a style sheet (style sheet contains the designing code of the website). All you need to do is create a new text file and rename it as style.css. Style sheet is something which holds the code that determines the design of a website. Now in this style sheet, all you need to do is copy the code with some modification accordingly.

/*
Theme Name: Wisteria
Theme URI: http://example.com/Wisteria/
Description: Wisteria Theme
Author: Chirag Baweja
Author URI: http://example.com
Template: wisteria
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: wisteria
*/

THIRDLY, ACTIVATE CHILD THEME, Once you setup all the setup, mentioned above, go to  “Appearance” → “Themes”  and search for your child theme there. Finally, all you need to do is click on “ACTIVATE” and your theme is activated. Now you can have a look at your website, which would be changed acording to your modification. later you can edit fuctions.php.

Must Read – The best way to Fix Google Adsense Errors in AMP pages and help you generate more revenue.

Leave a Comment

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

Scroll to Top