Many Web Developer had been using Child Theme from an existing WordPress Framework to save time and avoid extra ‘grunt’ work from developing a new WordPress Theme for their clients or personal use. There are tons of Free WordPress Framework available on the internet. Here are some of the popular and free to use one:

If you’re a serious and dedicated web developer, then there’s a premium or paid version of WordPress Framework such as Genesis and Thesis.

What is WordPress child theme?

WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme.

Here i will point out couple of extra step you can take to make sure your WordPress Theme is ready to use in child theme development.

1. Add child style.css for your theme

Make sure you include a child-folder inside your WordPress Theme so its easy for other users to create a child theme from your WordPress Theme. its easy, just create a new folder in your theme named child-YOUR-THEME-NAME and add a new style.css inside along with empty screenshots. Content inside child theme style.css should be similiar like this:

/*
Theme Name: Theme Name Child
Theme URI: http://www.link-to-parent-theme.com
Version: 1.0
Description: Child Theme for Parent Theme Name
Author: Your Name
Author URI: http://www.yoursite.com
License: GNU General Public License
License URI: http://www.opensource.org/licenses/gpl-license.php
Template: Parent-Theme-Name
*/
@import url("../Parent-Theme-Name/style.css");

2. Proper Action Hooks in Template

This is important for users to add an action hook to your Parent WordPress Theme. Basically its to make the process of editing template layout more convenient and avoid users edits the parent template. You should add do_action() hook to your templates:

<?php do_action('wp_before_content'); ?>
<div class='content'> some code here </div>
<?php do_action('wp_after_content'); ?>

well, you get the point.

3. template_directory() vs stylesheet_directory()

To make sure any template in parent theme are editable via child theme, you should add condition to your include() file like this:

<?php
if( is_child_theme() && 'YOUR-PARENT-THEME-NAME' == get_template() && file_exists( get_stylesheet_directory() . '/custom-functions.php' ) ):
include( get_stylesheet_directory() . '/custom-functions.php' );
else:
include( get_template_directory() . '/custom-functions.php' );
endif;
?>

Conclusion

Its not necessary to take this extra step to prepared your WordPress Theme for child theme. Framework like Genesis or Thesis use a good example of apply_filter() for their theme templating which is much easier if you know how to use add_filter() WordPress core function. Hopefully, this guide will help you understand more about preparing your theme for child theme usage.

Extra Step to Make Sure Your WordPress Theme is Child Theme Readyhttp://cdn.dezzain.com/1/2013/08/wordpress-child-themes.jpghttp://cdn.dezzain.com/1/2013/08/wordpress-child-themes-300x300.jpg Richie KS WordPress Tutorials,,
Many Web Developer had been using Child Theme from an existing WordPress Framework to save time and avoid extra 'grunt' work from developing a new WordPress Theme for their clients or personal use. There are tons of Free WordPress Framework available on the internet. Here are some of the...
Many Web Developer had been using <strong>Child Theme</strong> from an existing WordPress Framework to save time and avoid extra 'grunt' work from developing a new WordPress Theme for their clients or personal use. There are tons of <strong>Free WordPress Framework</strong> available on the internet. Here are some of the popular and free to use one:<span id="more-1268"></span> <ul> <li><a title="Thematic WordPress Framework" href="http://themeshaper.com/thematic/" target="_blank">Thematic</a></li> <li><a title="Hybrid WordPress Framework" href="http://themehybrid.com/" target="_blank">Hybrid</a></li> <li><a title="WhiteBoard WordPress Framework" href="http://whiteboardframework.com/" target="_blank">WhiteBoard</a></li> </ul> If you're a serious and dedicated web developer, then there's a premium or paid version of WordPress Framework such as <a title="Genesis WordPress Framework" href="http://www.studiopress.com/themes/genesis" target="_blank">Genesis</a> and <a title="Thesis WordPress Framework" href="http://diythemes.com/thesis/" target="_blank">Thesis</a>. <h3>What is WordPress child theme?</h3> A <a title="WordPress child theme" href="http://codex.wordpress.org/Child_Themes" target="_blank">WordPress child theme</a> is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme. <strong>Here i will point out couple of extra step you can take to make sure your WordPress Theme is ready to use in child theme development.</strong> <h2>1. Add child style.css for your theme</h2> Make sure you include a child-folder inside your WordPress Theme so its easy for other users to create a child theme from your WordPress Theme. its easy, just create a new folder in your theme named child-YOUR-THEME-NAME and add a new style.css inside along with empty screenshots. Content inside child theme style.css should be similiar like this: <h2>2. Proper Action Hooks in Template</h2> This is important for users to add an action hook to your Parent WordPress Theme. Basically its to make the process of editing template layout more convenient and avoid users edits the parent template. You should add <strong>do_action()</strong> hook to your templates: well, you get the point. <h2>3. template_directory() vs stylesheet_directory()</h2> To make sure any template in parent theme are editable via child theme, you should add condition to your include() file like this: <h3>Conclusion</h3> Its not necessary to take this extra step to prepared your WordPress Theme for child theme. Framework like Genesis or Thesis use a good example of <strong>apply_filter()</strong> for their theme templating which is much easier if you know how to use <strong>add_filter()</strong> WordPress core function. Hopefully, this guide will help you understand more about preparing your theme for child theme usage.

You might also like to read:

WordPress Tutorials

How to Remove Images from the_content() but Preserve HTML Formating

WordPress Tutorials

Easier Retina Support for Your WordPress Themes

WordPress Tutorials

How to Show All Child Categories from Parent Category in WordPress

Like Our Posts? Subscribes Now!

Preview on Feedage: dezzaincom

Add to My Yahoo! Dezzain.com

Add to Google! Dezzain.com

Add to AOL! Dezzain.com

Add to MSN Dezzain.com

Subscribe in NewsGator Online Dezzain.com

Add to Netvibes Dezzain.com

Subscribe in Pakeflakes Dezzain.com

Add to Windows Live Dezzain.com

iPing-it Dezzain.com

Add To Fwicki Dezzain.com