Categories: Blog

Creating Child Themes for Twenty Eleven, Twenty Twelve and Twenty Thirteen

In this tutorial I'm going to show you how to create Child Themes for WordPress Default Themes, Twenty Eleven, Twenty Twelve and Twenty Thirteen.

At then end of each guide you will find attached the child themes ready to be used and "abused" :D.

If you want to change your theme settings, add or remove functions in it then the only way to do this and at the same time maintain backward compatibility with any future WordPress update is using child themes.

For example lets say you want to remove the posting date from your WordPress Site, then you can do this using a child theme and every time WordPress releases and update for the default themes you don't have to worry about having your new settings overwritten from the default file settings.

NOTICE: You can either work on your pc and upload files later or work directly on your site using an FTP Client or a File Manager.

Creating a Child Theme for Twenty Eleven Theme

  • Create a new directory and call it "twentyeleven-child" in there create the following files:
    - styles.css
    - functions.php
  • Then edit file "style.css" and add the following code and then save.
    /*
    Theme Name:     Twenty Eleven Child
    Theme URI:      http://fixmywp.com/
    Description:    Child theme for the Twenty Eleven theme
    Author:         Fix My WP
    Author URI:     http://fixmywp.com
    Template:       twentyeleven
    Version:        0.1.0
    */
    @import url("../twentyeleven/style.css");

    You can insert your own "Theme URI", "Description", "Author", "Author URI" and "Version".

  • Next, edit file "functions.php" and insert thew following code and save.
    <?php
    //empty function.php
    
    ?>

Thats about it!!!
Download Twenty Eleven Child Theme

Creating a Child Theme for Twenty Twelve Theme

Create a new directory and call it "twentytwelve-child" in there create the following files:
- styles.css
- functions.php
Then edit file "style.css" and add the following code and then save.

/*
Theme Name:     Twenty Twelve Child
Theme URI:      http://fixmywp.com/
Description:    Child theme for the Twenty Twelve theme
Author:         Fix My WP
Author URI:     http://fixmywp.com
Template:       twentytwelve
Version:        0.1.0
*/

@import url("../twentytwelve/style.css");

Likewise you can insert your own "Theme URI", "Description", "Author", "Author URI" and "Version".

Next, edit file "functions.php" and insert thew following code and save.

<?php
//empty function.php

?>
Download Twenty Twelve Child Theme

Creating a Child Theme for Twenty Thirteen Theme

Create a new directory and call it "twentythirteen-child" in there create the following files:
- styles.css
- functions.php
Then edit file "style.css" and add the following code and then save.

/*
Theme Name:     Twenty Thirteen Child
Theme URI:      http://fixmywp.com/
Description:    Child theme for the Twenty Twelve theme
Author:         Fix My WP
Author URI:     http://fixmywp.com
Template:       twentythirteen
Version:        0.1.0
*/

@import url("../twentythirteen/style.css");

Once more, can insert your own "Theme URI", "Description", "Author", "Author URI" and "Version".

Next, edit file "functions.php" and insert thew following code and save.

<?php
//empty function.php

?>
Download Twenty Thirteen Theme
PRACTISE: You can try following my guide on How to Remove Posting Dates from WordPress Posts as an example.
Makis Mourelatos

WC Athens 2016 co-organizer, WP Support and Security Aficionado, Wannabe Kitesurfer.

View Comments

Share
Published by
Makis Mourelatos

Recent Posts

WordPress Theme Development

WordPress is a widely popular Content Management System (CMS) that powers over 40% of all…

2 years ago

WordPress Solutions

WordPress is a popular platform that empowers more than 60 million websites worldwide. Millions of…

2 years ago

WordPress Site Maintenance

In this article, we will cover ten crucial WordPress site maintenance tasks that every website…

2 years ago

WordPress Security Solutions

In this blog article, we will explore the various WordPress security solutions you can implement…

2 years ago

WordPress Plugin Solutions

Plugins are an integral part of WordPress, as they offer countless benefits and features that…

2 years ago

WordPress Optimization and Performance Improvement

In this article, we will explore various strategies that can help you enhance your WordPress…

2 years ago