How to make any theme a blank framework

| April 23, 2009 | Leave a Comment

Ian Stewart of ThemeShaper has an article showing people how to turn any WordPress theme into a blank theme framework. Using the template parameter in the style.css theme declaration block is key.

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.

As mentioned in the article, you can just pick a parent theme, such as Kubrick, the current default WordPress theme, as your parent theme, then only override certain parts of it without having to re-code everything from scratch. It’s a great new feature in WordPress 2.7 that you should check out.

Related Posts

Tags: , , , ,

Leave a Reply