How to Create a 2012 Child Theme in WordPress

We all know it’s a bad idea to customize the default WordPress theme templates because when updating it would wipe out your edits.

Instead, we create a child theme. To do this, first we create a new theme folder. Then comes the CSS style.css file with the following meta comment at the top, followed by the import of the twenty twelve styles.

/*
Theme Name: Twenty Twelve Child
Theme URI: http://example.com/
Description: Child theme for the Twenty Twelve theme
Author: Your name here
Author URI: http://example.com/about/
Template: twentytwelve
Version: 0.1.0
*/

@import “../twentytwelve/style.css”;

 

For more information, check out the WordPress Codex on Child Themes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s