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.
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.
/* 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".
<?php //empty function.php ?>
Thats about it!!!
Download Twenty Eleven Child 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
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
WordPress is a widely popular Content Management System (CMS) that powers over 40% of all…
WordPress is a popular platform that empowers more than 60 million websites worldwide. Millions of…
In this article, we will cover ten crucial WordPress site maintenance tasks that every website…
In this blog article, we will explore the various WordPress security solutions you can implement…
Plugins are an integral part of WordPress, as they offer countless benefits and features that…
In this article, we will explore various strategies that can help you enhance your WordPress…
View Comments
ok
thanks :)