Skip navigation

Alex King: WordPress Themes Versus Templates

Alex King’s “WP Themes vs. Templates” discusses the modular system of how WordPress Themes work with some good tips on creating a template form to work within your WordPress Theme.

While the theme system works well as advertised, it doesn’t work exactly the way I like to set up my web front-end code. Luckily, it is so flexible that I can easily implement my preferred system.

The standard theme set-up has a header file, footer file, sidebar file and index, single and page files that include the header, footer and sidebar. This is all well and good, but if you make a change to your overall layout, you often have to make it in 3 places (the index, single and page files).

I prefer a template approach, where I have a master template that has a few “holes” in it for content. This is a little different in concept from the standard theme set-up, but it is important to implement it so that it follows the normal theme conventions – that things that rely on those conventions don’t break.

As I work on my article series on Building a Blog, I will be addressing this issue of incorporating external files into WordPress Theme template files and creating a “master template” effect. Stay tuned!

Related Articles: Building a Blog

Site Search Tags: , , , , , , , ,
Copyright Lorelle VanFossen, member of the 9Rules Network

Member of the 9Rules Blogging Network

One Comment

  1. Posted October 20, 2006 at 7:58 am | Permalink

    That problem can be overcome by having everything in the header and footer, then just add content to the single, page and index pages, simple really :p

2 Trackbacks/Pingbacks

  1. […] Alex King: WordPress Themes Versus Templates […]

  2. […] Alex King: WordPress Themes Versus Templates […]

Post a Comment

Required fields are marked *

%d bloggers like this: