This is my first post for Twenty Eleven WordPress Theme so i thought to start with How to create a child theme for Twenty eleven theme.See If you want to customize your wordpress theme then creating child theme is one of the most important thing. The main purpose of creating child theme is to secure your modified files while you update your wordpress theme in other words when you update your wordpress theme you will not loose any customization of your theme.
Note: Before making child theme first make sure that you have installed the latest Version of Twenty Eleven WordPress Theme
Twenty-Eleven-Wordpress-Child-Theme
So let’s begin the steps for Creating WordPress Twenty Eleven Child Theme:
1. Open notepad and add the following lines to?import your WordPress Style.css files :
/*
Theme Name: TwentyElevenChildTheme
Theme URI: Your URL
Description: My own Twenty Eleven Child Theme
Author: Your name
Template: twentyeleven
@import url(‘../twentyeleven/style.css’);
2. Save the file with the name?style.css
Note: make sure to Save file with .css extension by changing save as type to All files.
3. Make a folder – TwentyElevenChildTheme and paste the style.css file in it.
4. Go to your WordPress Dashboard> Appearance > Install Themes > Upload > Choose File and upload TwentyElevenChildTheme folder containing style.css file.
5. Activate Your Theme and that’s it. You have made your first kid subject
Tip :- You can add as many files you want to your child theme folder by going to your wordpress hosting control panel [ ?/public_html/wp-content/themes/ ]?and add the files to your child theme folder. For eg; If i want to customize header.php file of my wordpress theme then first i will copy the header.php file from the original twenty eleven theme folder then i will paste it to?TwentyElevenChildTheme folder. Now i will customize header.php files from my childtheme which will be overwrited to original header.php file.

0 Comments