How To Easily Create A Thematic Child Theme

Posted: February 20, 2010 in Wordpress
Are Theme Frameworks the future of WordPress Themes? In this article, I’m going to show you how to easily create a child theme for the popular Thematic WordPress Theme framework.

What is a Theme framework? And why use it?

Basically, a Theme framework is a WordPress theme that you can extend using functions, styles and child themes.
Child themes are most of the times two files: function.php and style.css. An optional directory containing images can be used as well. Child themes can’t work without a parent theme, which is a synonym for “Theme framework”.


So, why use a Theme framework instead of a “classic” theme? The answer is quite simple: When you need to modify one of WordPress’ functionalities, you don’t edit the core file. Instead, you use a plugin of a hook to modify what you need without editing the core files. That way, you can customize WordPress to fit your needs while at the same time being able to upgrade it without loosing your mods.

Theme frameworks use the same logic: Modify as you need, but don’t edit core file so you’ll be able to upgrade.

In this tutorial, I’m using the Thematic theme framework, a GPL licenced theme brought to you by Ian Stewart. Thematic is in my opinion very powerful and optimized. Therefore, you may be interested in taking a look at other WordPress frameworks as well, such as Hybrid, Headway, Thesis or WP Framework.

Creating the child theme

Right now, you should know what a Theme Framework is and why you should use them. But enough theory for now, let’s get ready to create our own child theme for Thematic.

Download Thematic

Of course, the first thing to do is to download the Thematic Theme Framework. Once finished, unzip the file on your hard drive.

If you want, you can activate Thematic and take a look at your blog. Thematic can be used as a parent theme, or in standalone mode. Without a child theme, Thematic is ready to use and features a really gorgeous typography. There’s no images or even colors, so that you can create your child theme and make Thematic fit your needs, either in its look or functionality.

Create your child theme directory

After you unzipped the Thematic zip file, open the directory. You’ll find a sub directory calledthematicsamplechildtheme. Copy it and paste it on the wp-content/themes directory. Rename it with your desired theme name. In this tutorial, I’ll use the name catmatic.

Modify the stylesheet info

Navigate to your new catmatic (or whatever you named it) directory. you’ll find two files: The first isfunctions.php and the other one is style.css. Open style.css in your favorite text editor. You’ll find the following lines:

02.Theme Name: A Thematic Child Theme
03.Theme URI:
04.Description: Use this theme to start your Thematic Child Theme development.
05.Author: Ian Stewart
06.Author URI:
07.Template: thematic
08.Version: 1.0
09.Tags: Thematic
11.Thematic is © Ian Stewart

What you have to do is simply to name your child theme and give more info about it, as in the following example :

02.Theme Name: Catmatic
04.Description: A Thematic child theme.
05.Author: Jean-Baptiste Jung
07.Template: thematic
08.Version: 1.0
09.Tags: Thematic
11.Thematic is © Ian Stewart

Once finished, save the style.css file.

Styling the theme

At this point of the tutorial, we have prepared our child theme but we haven’t started to code yet. So what are we waiting for? The first stage of child theme development is to give the desired look to the Thematic framework, using CSS and images.

Add CSS Styles

Defining CSS styles on your theme child is definitely easy. All you have to do is to add styles to the style.css file from the catmatic directory.

Add images

Adding images to your child theme isn’t hard either. To do so, navigate to wp-content/themes/catmaticand create a new directory named images. (You can name it the way you want, but images is pretty much self-explanatory)

Then, simply put image files in the images directory. If you want to link to those images using CSS, you’ll do the following:

2.background: #fff url(images/bg.gif) repeat-x top left;

Supercharging Thematic

Well, after having some CSS fun, your Thematic child theme should look as you want it to. Though, what if you want to modify the theme? Should you edit Thematic theme files?
No, you shouldn’t. Of course, it is possible to do it but it is not a good practice at all. If you’re familiar with WordPress development, you probably know about hooks, which allow you to “hook” a custom function to another. In addition to WordPress hooks, Thematic also adds lots of hooks that allow you to do many things to customize your child theme.

Add functions/hooks

Add your custom functions to your child theme is easier than it seems: Open the functions.php file from your child theme directory and paste your functions there.

To help you get started, here is a bunch of ready-to-use functions:

Modify theme link:

1.function my_footer($thm_footertext) {
2.$thm_footertext = 'Powered by <a href="">WordPress</a>, the<a href="">Thematic Theme framework</a> and the Catmatic child theme.';
3.return $thm_footertext;
5.add_filter('thematic_footertext', 'my_footer');

Define where to use excerpt/full posts

01.$full_content = false;
02.function childtheme_content($content) {
03.if ($full_content) {
04.$content= 'full';
05.} elseif (is_home() || is_front_page()) {
06.$content= 'excerpt';
07.} elseif (is_single()) {
08.$content = 'full';
09.} elseif (is_tag()) {
10.$content = 'excerpt';
11.} elseif (is_search()) {
12.$content = 'excerpt';
13.} elseif (is_category()) {
14.$content = 'excerpt';
15.} elseif (is_author()) {
16.$content = 'excerpt';
17.} elseif (is_archive()) {
18.$content = 'excerpt';
20.return $content;
22.add_filter('thematic_content', 'childtheme_content');

Display Thematic menu above header

1.function remove_thematic_actions() {

Add a favicon

1.function childtheme_favicon() { ?>
2.<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.png"/>
3.<?php }
4.add_action('wp_head', 'childtheme_favicon');

Activate your theme

Right now, you should have a child theme that fit your needs in both the look and functionality. The last thing we have to do is to upload the theme to your wp-content/themes directory and activate it. Make sure that Thematic is available on your wp-content/themes directory as well.

  1. Doris says:

    Amazing! Its actually awesome piece of writing, I
    have got much clear idea concerning from this piece of writing.

  2. Why viewers still use to read news papers when in this technological globe all
    is presented on net?

Leave a Reply

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

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s