Child Theme WordPress

Well today I’m going to explain how to create a child theme in WordPress is kind of simple work, but some of us had to struggle to get it done when we started to do our first WordPress sites (by we you my understand ME), because the true is that is very easy now that I know.

Responsive child theme

Responsive child theme

Basically what you have to do is to go to /wp-content/themes/ create a folder with the name of the child theme (different from other themes you have) for instance “sosolar”. Inside this folder you can create any structure on a theme, but the only file required is “style.css”, then you only have to create a special content for this file.
The file is supposed to have inside the following:

/*
Theme Name: My Child Theme(in this case sosolar)
Theme URI: http: //mysite.com/ (in this case

http://www.abelworld.com/wordpress-child-theme)
Description: This is a custom child theme I have created.
(or put a reference to the description like http://www.abelworld.com/about/ this theme)
Author: My Name (for instance: Abel Guzman Sanchez)
Author URI: http: //mysite.com/ (in this case: https://www.abelworld.com/about/)
Template: parenttheme
(in this case twentytwelve is a nice theme I like it as base to start doing serious things)
Version: Version number (in this case 0.1)
*/

So basically your child theme would be something like:

/*
 Theme Name:     sosolar
 Theme URI:      http://www.abelworld.com/child-theme-wordpress/
 Description:    Child theme for the Twenty eleven theme
 Author:         Abel Guzman
 Author URI:     https://plus.google.com/u/0/116095396075951868976/posts
 Template:       twentyeleven                             Version:        0.1.0
 */
End of the story, of couse this child theme does not do any thing, the rest depends on what do you want to modify. for instance you can check this other example. Otherwise if you want to modify styles you just have to change may by this file you created, and remember that what you do in here overrides what is in the father theme. You might expect  some more posts on this subject on the near future. Enjoy.

Leave a Reply

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