How to create a child theme for wordpress twenty twelve theme

Oct 11, 2012 by SunFun
Hi there..
I just started using the twenty twelve theme for my wordpress website and I want to edit some things and I was told that I should always do my editing on a child theme and not the default one. Can someone please tell me how to create a child theme for my twenty twelve theme?
Thanks in advanced

1 Answer

Oct 11, 2012 by SmartHost
To create a child theme do the following:
1.Create a new directory in your wp-content/themes, and you can name it for ex. twentytwelvechild
2.Write the below code and save it in a file and name this file style.css. Make sure you place this file in your new directory that you have just created.
The code:
Theme Name: Twentyeleven Child
Description: Child theme for the twentytwelve theme
Author: Name
Template: twentytwelve
@import url("../twentytwelve/style.css");
#site-title a {
    color: #009900;

3.Go to your Dashboard -› Themes and then activate your new theme from here.
0 votes