The structure of a Blogger template

>> Browse templatesMoney tips11 comments

Blogger Template Design: Tutorial 1

Before designing a template, you must have an idea of what the basic structure of a template is. Generally, the actual structure of any templates are not exactly the same. But, by knowing the basic structure, you can easily get the ideas of how to tweak your existing templates, design a template, and how to change it into a different structure.

Some parts of the template structure are obvious from what you can see on most blogs: the headers, footers, and posts sections. But there are some sections (I'll call these sections blocks or containers afterward) that are not visible on the computer screen, but important HTML-wise to build a practical and proper working template.

To start off, a template structure basically contains blocks of containers that looks like this:


Going from the biggest to the smallest blocks:
  1. Body: the outer most block is the Body of your template (basically everything that the computer screen covers).
  2. Outer-wrapper: this container covers your whole template (the body is more like the outside of your template). In general, you build a wrapper to place a multiple of smaller blocks inside it. The most common blocks inside this Outer-wrapper is the Header, Content, and Footer.
  3. Header: this block is the top most part of your blog (the name is quite obvious). But inside the Header you will have other sub-blocks too - the Header Title block, the Header Description block, and others such as the Adsense banners, a menu bar, etc. So, to wrap all these sub-blocks inside one large container, the largest container in the Header section is usually a Header-wrapper that wraps everything inside.
  4. Content: below the Header is the Content-wrapper - basically the most important container block of all. Immediately inside this wrapper are the Sidebar containers (1,2 or any number of sidebars) and the Main container (which contains your posts, comments, or some ads).
  5. Footer: is the bottom most container of your template. As in the Header section, you'll also need a Footer-wrapper to contain other sub-blocks in the Footer section.
  6. Main: the Main-wrapper is the outer most container in the Main section which goes inside the Content-wrapper. Inside this Main-wrapper are the Post block, Comment block, Date Header, and other widgets created from the Add Page Element option.
  7. Sidebar: is the block that contains all your side widgets - About Me, Labels, Archive, Text, HTML, Adsense, etc. In a standard Blogger template, you will usually find only 1 sidebar - hence the 2-column template (Main and Sidebar). But it's actually easy to add multiple number of sidebars. The most common ones are 2 sidebars - or the 3-column template. You will see from these tutorial series that once you understand the template structure, it's actually easy to add and move the sidebars to the left or right of your Main container.
  8. Blog Post: this block contains the important stuff - your Posts Titles, Post, Post Author, Labels, etc.
One other way to see this structure is from the hierarchical point of view. Starting from the largest container to its sub-containers, the structure looks like this:

  • Body
    • Outer-wrapper
      • Header-wrapper
        • Blog Title
        • Blog Description
        • Other widgets
      • Content-wrapper
        • Sidebar-wrapper (1,2,3...)
        • Main-wrapper
          • Date Header
          • Posts
            • Post Title
            • Post Content (or called Post Body)
            • Post Footer (Author, Labels, etc)
          • Comments
          • Feed Link
          • Other widgets (mostly ad units)
      • Footer-wrapper
        • Footer text (disclaimer, copyrights, etc)
        • Other widgets
Once you understand this basic structure, it'll be easier to start learning about the structure of the Blogger template code. Learning the code structure is not about learning HTML or CSS, but more about how the template code is organized, which is pretty much like how the container structure is organized. It's surprising that even with little knowledge on web programming, you can customize your template quite a lot just by understanding the basic structure and some CSS language.

***************************************
Next Tutorial:
The next step in this tutorial is to understand more about the Structure of a Blogger Template Code.

11 comments:

Anonymous June 18, 2007 7:06 PM  

Cannot customised it, changed background color, but nothing happened

Elque June 19, 2007 1:52 PM  

Thanks,

About customizing, I've a lot of variables so that you can use it in the Fonts and Colors tab. But each template has different customization options. It may be that in the template that you're using, I did not make background colors as an option to change (maybe because I use a specific image as background). If that's the case, I forgot to delete the background color option in the Fonts and Colors tab, which I should have done. Anyway, which template are you refering to? I can see what the actual problem is and see what I can do to help.

Another thing, if you really want to change the background color, you can tweak the template following the tutorials 3 and 4.

arvind June 26, 2007 12:38 AM  

like your blog
cheers!!!

solusisehat June 30, 2007 8:16 PM  

How use "Irvan View" for example templates (jpg format)?

Elque July 04, 2007 2:09 AM  

Hi, I'm not sure what you're asking about the Irfan View.

Balázs November 16, 2007 12:12 PM  

Thanks, it's very useful!

Litchi September 25, 2008 9:41 PM  

I've been looking everywhere for a tut like this.... looking forward to sinking my teeth into it. :D
Thanks!

Kimberly February 15, 2009 9:28 PM  

salaams,

thank you soo much for this tutorial. I studied web development in college, but blogger is too complicated...I attempted doing my own template recently, but it looks kinda bad in some browsers and also its not exactly the way I want it. I have been dreaming of a tutorial like this for a very long time. I havent even read it yet, but just seeing that color-coded pic of the layout clarified a lot, mashallah. I should be able to trully design good templates soon, inshallah.

btw- your templates are the best I have seen for blogger. Honestly. They are soo highly customisable.

jazak allahu khair,
Amatullah

John February 25, 2009 4:07 AM  

ITemplatez.com offers professional web templates,css templates,professional templates,psd templates, flash templates ,swish templates, dreamweaver templates, and other web design products available for immediate download.

BestofBlogger June 19, 2009 7:27 PM  

i translate this tutoral to turkish. do you approve??
an also i create my own blogger blogspot template

http://wetemplate.blogspot.com/

Alex Xavier June 24, 2009 6:38 AM  

Hi,

Great blog. Could you consider making videos of these tutorials and uploading them to youtube? It will be great for us to learn faster and you will get much greater number of clicks to your site as well.

All the best.