Any WordPress Theme Can Be a Blank Framework

A question from a reader has prompted this post. What makes a WordPress Theme Framework? I say, any WordPress theme can be a theme framework.

I’m researching Thematic and would really like some clarification on child themes. You say several places to use a child theme but I couldn’t find a list — is Junction the only one? I’m very interested in your comment that “if you’re starting with a Child Theme any WordPress theme becomes a blank framework”. But how? Could you explain a bit? Maybe a step-by-step explanation? Do you install Thematic, then the child theme, then how does “any Wordpress theme” come into play? Valerie

So is it true? Yep. I’ll tell you how, why and what it means.

How To Make Any WordPress Theme A Blank Framework

Here’s how to make a Child Theme and make any WordPress theme your blank framework. Create a unique directory in your Themes folder. Let’s say it’s “supersample” for a Child Theme called “Super Sample”. Save a file to “supersample” called style.css. Put the following at the top of your style.css file:

  1. /*
  2. Theme Name: Super Sample
  3. Theme URI: http://yourdomain.com/
  4. Description: Testing WordPress Child Themes
  5. Author: Your Name
  6. Author URI: http://yourdomain.com/
  7. Template: name-a-parent-theme-here
  8. Version: 1.0
  9. */

Just like any other theme right? Sort of. Note the template parameter:

  1. Template: name-a-parent-theme-here

The template parameter could take anyone of the following settings (as long as the Parent Theme defined is actually in your themes directory):

    1. Template: thematic
    1. Template: cutline
    1. Template: sandbox
    1. Template: default

Now we get to my point: the template parameter turns any theme into a Parent Theme—a blank framework—when you make that Child Theme the active one. All you have to do is select that new Child Theme in the themes panel of your WordPress admin. The Child Theme is now using all the template files—header.php, index,php, sidebar.php, etc.—from the defined Parent Theme and none of the CSS of the Parent. WordPress looks for the CSS in the Child Theme directory. Try it yourself. It works right now in WordPress and let’s you modify any theme with CSS alone.

In WordPress 2.7 any template file you add to your Child Theme will override the parent template and new custom templates from the Child Theme directory will become available. This has radical implications. Right now though, you can still interact with the Parent Theme templates through functions.php in your Child Theme—but that’s a whole ‘nother story.

If you’re looking for examples of Parent-Child themes, my themes Acamas and Travailler, along with the theme you see here on ThemeShaper, and Pat Dryburgh’s Junction, are all Child Themes of Thematic. Justin Tadlock has several Child Themes available, and more coming, for his themes on Theme Hybrid. All the designs entered in the Sandbox Design Competition are Child Themes of The Sandbox.

And I think you’ll be seeing a lot more Parent Child Themes soon.

All Frameworks Are Not Created Equal

One caveat. The extent to which a blank theme framework can be a good Parent Theme depends on the support for the theme and the markup. A good theme framework needs to keep up with WordPress development. Technically, this makes the Default WordPress theme a good framework. But only technically. I don’t know if the markup really lends itself to that good use as a theme framework. Good, lean markup that lets you create hundreds of different popular layouts is rare in the WordPress theme world.

Rare too are semantic class names. No one wants to float a div named “sidebar-left” to the right of their layout. And what if you’re not going to use it as a sidebar?

What does this mean? While you can use any WordPress theme as a blank framework, not every theme makes the best blank framework. But! If all you’re looking for is a blank canvas, well, you’ve got that when you select any WordPress theme as your next theme’s Parent Theme.

More Information on WordPress Theme Frameworks

For more information check out the following posts on ThemeShaper:

Themes To Consider as WordPress Theme Frameworks

Don't forget: You should follow me on twitter here.

Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

19 Comments

  1. Posted August 28, 2008 at 9:05 am | Permalink

    I’m just excited about all the work you and a few others have been putting behind child themes, and I definitely think we’ll see a lot more theme authors going this route once the concept catches on.

    As you said, “All Frameworks Are Not Created Equal.” It takes a lot of careful planning to really put something together that can be used in a lot of ways.

  2. Posted August 28, 2008 at 9:43 am | Permalink

    Brilliant. I’ve read this many times and experimented, but this was the lightbulb moment when I realized that maybe we don’t really need Starkers, Naked, et al. Of course what will all this mean for WP 2.7? Will/should we rely on just Child-Theming the Default theme since it will most likely be the one that has all the updated template tags and new features built in?

  3. Posted August 28, 2008 at 10:04 am | Permalink

    @Kel: You could use the default theme for Child Theming. And I suspect a lot of people will—but I wouldn’t. There would be just too much I would have to override. Which is why I maintain Thematic. ;)

  4. Posted August 28, 2008 at 12:46 pm | Permalink

    Hi Ian… between what you’re doing with’ Thematic’, Justin’s very clean themes like ‘Bliss’ and Ben’s ‘Tarski’ theme, this opens up so many possibilities. Having a rock solid framework that’s maintained and upgraded to build upon is a dream come true for blog designers.

    So many WP themes have quirks or aren’t built on a solid foundation. When I put together blogs for clients they don’t just want it to look “hot”, they expect it to work without constant, ongoing problems.

    I can see how with just a few, well thought out and well designed themes like what you’re doing here with Thematic will make everything we love about WordPress even better.

  5. Posted August 28, 2008 at 2:18 pm | Permalink

    Hey Ian–thanks for your response to my question. I followed your instructions and got the child theme installed and ready to customize for a client. I like how it’s based on the 960 grid, so I’ll be able to change the layout around when the client wants it (they will). And since there’s a real possibility that I’ll be maintaining this site for my client, upgrading will be much much better.

    It is fun to think of the possibilities child themes open up for Wordpress.

    Thanks again!

  6. Posted August 29, 2008 at 10:05 am | Permalink

    K2 and Cutline both make great parent themes. Unfortunately (for me), I can’t think of even one of my themes that could be used as a framework! I am hoping the collaborative theme called Aligned I am working on (currently on my site) will be packaged with the emphasis on cleaning up the XHTML.

  7. Posted September 1, 2008 at 8:20 am | Permalink

    Very interesting, and something I wasn’t even aware of. Thanks for bringing this to my attention.

    Going off of what Kel said, I am a bit worried about how child themes could be abused. I like the idea of child themes being available for Sandbox, etc., but too many child themes being made for too many current themes could get…messy.

    Thanks again.

  8. Posted December 31, 2008 at 5:09 pm | Permalink

    This is really great stuff, Ian; thanks.

    What are your thoughts about Hemingway?

  9. Posted May 14, 2009 at 1:32 am | Permalink

    This is good stuff, thanks for it ;)

  10. Brian
    Posted July 3, 2009 at 5:41 pm | Permalink

    This theme looks almost identical to Thesis from Chris Person..

    Did you copy it or what?

    Did Chris contacted you to remove it from wp list or do you had any problems so far?

    Just wondering.. Strange.

    • Posted July 3, 2009 at 6:18 pm | Permalink

      You mean the current ThemeShaper Theme or Thematic? I don’t think it looks identical to Thesis. Are you sure you know what that word means? Person would have told me if it did. If Person contacted me I remove it from wp list.

      • Scott
        Posted July 3, 2009 at 6:49 pm | Permalink

        Ian-
        How about the Thesis Theme as a framework in your list? It’s more flexible than the ones you have listed, imo. I know it has a trivial cost, but you really should try it out. I love it!

  11. brian
    Posted July 7, 2009 at 5:52 pm | Permalink

    Are you sure you are not missing a step here??

    I tried this on my theme but it didn’t work. Altough The child theme shows up in the theme section of wordpress and I can active it, the theme is not importing the child css for some reason.

    Are you sure we don’t need to enter some lines of php code somwehere else? Because in the functions of your theme you have some lines of code of child theme… And I have not checked other files of thematic but probably there some other lines there..

    In my theme, the child css code is not being inherited.. it just opens the parent css like always…

    • Ken
      Posted July 15, 2009 at 11:50 am | Permalink

      Thanks Ian, your tutorials are the best, and in doing my research, I’ve chosen to use Thematic as my parent theme from now on. At least until I get Pro enough to need to roll my own framework ;) Thanks for all your hard work, and I’ll be looking to give back as soon as I feel like I know enuff to contribute worthwhile ideas :)

  12. Posted July 27, 2009 at 1:51 pm | Permalink

    I just purchased the ThematicPowerBlog theme, so I’ve made my choice after looking at A LOT of templates. I’m a novice, so forgive me if I’m way off base (and please correct me!), but my impression is that Thematic is somewhat similar to Thesis — not as a design copy — but in that they are clean, nice designs with powerful possibilities. Apparently, Thesis is more “user friendly” but it appealed to me to give it a try to try to learn how to tweak a theme myself.

    I had also looked at Frugal. What are your thoughts on that theme? I tried out the free version and it was clean and quite easy to modify – I wanted something with a few more options built in – which is why I ended up choosing Thematic.

  13. Posted September 26, 2009 at 8:32 am | Permalink

    That’s good explanation, thanks for the lesson very much.

    Dini

  14. Posted October 5, 2009 at 4:53 pm | Permalink
  15. Posted October 22, 2009 at 12:06 pm | Permalink

    I have had a chance to play around with the Thematic framework, and all I can say is wow. Very nice framework!

  16. Posted January 22, 2010 at 2:25 am | Permalink

    I use premium WordPress theme framework, the headway theme and thesis theme, and studiopress will release a new theme, the free one is hard to use, at least for me

14 Trackbacks

  1. By links for 2008-08-28 (Jarrett House North) on August 28, 2008 at 9:32 pm

    [...] How To Make Any WordPress Theme A Blank Framework (ThemeShaper) What the framework concept is all about. (tags: wordpress) [...]

  2. [...] read over at ThemeShaper. I wasn’t even aware of child themes and this sort of use. Awesome. Posted to Asides | Tagged Child Themes, Ian Stewart, ThemeShaper | « Review of [...]

  3. [...] Any WordPress Theme Can Be a Blank Framework [...]

  4. By 杂谈 WordPress 主题框架 | Dreamcolor's Cote on November 25, 2008 at 12:36 am

    [...] 本文参考文章: Any WordPress Theme Can Be a Blank Framework [...]

  5. By Shiny new software… on December 16, 2008 at 11:35 pm

    [...] outside, snow on Matt’s blog, WordPress 2.7 (with a snazzy redesign and full support for child themes!), and Firefox 3.1 Beta 2. It’s beginning to look a lot like [...]

  6. [...] “Any WordPress Theme Can be a Blank Framework” [...]

  7. By Mimbo 3.0 Released | Darren Hoyt Dot Com on January 30, 2009 at 12:21 pm

    [...] to be much easier. Along those lines, for anyone doing major modifications I would recommend you build a child theme containing any styles and templates you wish to overwrite. Please see the download page for more [...]

  8. [...] How To Make Any WordPress Theme A Blank Framework – “…any WordPress theme can be a theme framework” says Ian Stewart. And that’s exactly what this tutorial explains how to do. [Link] [...]

  9. [...] How To Make Any WordPress Theme A Blank Framework – “…any WordPress theme can be a theme framework” says Ian Stewart. And that’s exactly what this tutorial explains how to do. [Link] [...]

  10. [...] Any WordPress Theme Can Be a Blank Framework Share and [...]

  11. By Any WordPress Theme Can Be a Blank Framework on July 4, 2009 at 12:25 am

    [...] here to read the rest: Any WordPress Theme Can Be a Blank Framework Tags: framework – tutorials Comments0 Leave a Reply Click here to cancel [...]

  12. [...] How To Make Any WordPress Theme A Blank Framework – “…any WordPress theme can be a theme framework” says Ian Stewart. And that’s exactly what this tutorial explains how to do. [Link] [...]

  13. [...] Child themes depend on ‘Parent Themes’. Some go as far and call them ‘Theme Frameworks’; themes specifically developed with child themes in mind. In this article we won’t distinguish between parent themes and frameworks, they are the same thing. [...]

  14. [...] Wordpress themes blank framework [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. In addition, you may find yourself fitter, happier and more productive. Comment away.

Subscribe without commenting