Sunday, August 31, 2008

How to add 3 column section on footer

As you can see at the bottom of this blog, I have three columns in the footer section. I placed my other widgets below to gain more space on my sidebar.

Adding extra columns to your footer section will provide more valuable space for blog widgets, and will give your blog a much appealing look.This guide will help you add extra columns to your own Blogger blogs.

The overall process is quite simple. I have taken into account that different blogs have different widths and styles, and so have designed a fluid solution which should work in any Blogger layouts template.

Here are the four steps needed to transform the footer section of your blog template:


1. First and most importantly Back up your existing blog template!

Before making any modifications to your blog template, it is essential that you make a back up of your existing template. Then if you make any mistakes, or decide you don't like the new look, you can easily revert back to this design.

To back up your existing template, go to Template>Edit HTML in your Blogger dashboard, and click on the "Download Full Template" link near the top of the page. You can then save your existing XML template file to your computer.

2. Move all existing widgets from the existing footer section

In the Layouts section of your Blogger dashboard, move all widgets which are present in your footer section into your sidebar (or other section) instead. This is only temporary, as you can move them back later once we have finished adding your new footer section. Most importantly, this ensures that you don't lose these widgets during the modification, and makes it much easier to complete.

3. Add extra code to your footer section.

Go to Template>Edit HTML in your Blogger dashboard, and do not check the "expand widget templates" box (this simplifies the process).

Now you need to find this section in your template:


<div id='footer-wrapper'>
<b:section class='footer' id='footer'/>
</div>

Please note that this particular section may be called something slightly different in your template, eg: "footer-wrap" or "footer". In the case of Rounders templates, you may notice that there are in fact two DIV sections around the footer section. In any case, all we need to change is the line highlighted in red.

<div id='footer-column-container'>

<div id='footer2' style='width: 30%; float: left; margin:0; text-align: left;'>

<b:section class='footer-column' id='col1' preferred='yes' style='float:left;'/>
</div>

<div id='footer3' style='width: 40%; float: left; margin:0; text-align: left;'>
<b:section class='footer-column' id='col2' preferred='yes' style='float:left;'/>
</div>

<div id='footer4' style='width: 30%; float: right; margin:0; text-align: left;'>

<b:section class='footer-column' id='col3' preferred='yes' style='float:right;'/>
</div>

<div style='clear:both;'/>
<p>
<hr align='center' color='#5d5d54' width='90%'/></p>
<div id='footer-bottom' style='text-align: center; padding: 10px; text-transform: lowercase;'>

<b:section class='footer' id='col-bottom' preferred='yes'>
<b:widget id='Text2' locked='false' title='' type='Text'/>
</b:section>

</div>
<div style='clear:both;'/>

</div>
it's a good idea to save your template at this stage, before we add just one small section of code to style the new footer section and ensure that the widgets don't get pushed beneath each other when you add them later.

4. Adding style for the new footer section

Once again, open the Edit HTML section in your Blogger dashboard. This time, you need to find the closing "" tag, which is where the style section of your template ends.

Immediately before this line, add the following lines of code:

#footer-column-container {
clear:both;
}

.footer-column {
padding: 10px;
}
And save your template again. The style in these lines of code ensure that the footer column don't get too bunched up, or slide beneath each other in the layout of your template.

Now you have finished adding these new sections to your footer, go to the Layout section of your Blogger dashboard (Template>Layout), and you will see the three new column, plus a lower section which spans the width of all three column, to which you can now add new widgets!

I added a horizontal line to the footer section to ensure that there is a clear distinction between content in the footer columns and content in the wider section beneath. If you would like to change the color of this line, you can do so by replacing the hex color values in the line below (highlighted in red) with a different color:


<hr align='center' color='#5d5d54' width='90%'/>

If you are unsure of the hex value for the color you prefer, you can refer to my HTML Color Chart.

If you would prefer to remove the line altogether, simply delete the whole line.

I hope this tutorial enables you to customize your footer section with ease, so you can add more widgets and content to this area of your blog template.

20 comments:

Anonymous said...

Thanks! It was great to be able to put all that "other stuff" at the bottom of my blog rather than in the sidebars! :-)

election signs said...

I am going to bookmark your site and have absolutely my children visit here often.

essayexpert said...

I hope you will continue your same best work and we will get more informative post which can helpful to us. Thanks for this

siligra online said...

Thanks a lot for sharing. You have done a brilliant job. Your article is truly relevant to my study at this moment, and I am really happy I discovered your website

nzb server said...

it is really awesome to discover your site on the web as it really those ones who are just starting to explore the topic

credit card payment gateway said...

I even told my friends to take a look at your blog and in fact your blog is already bookmarked on my computer. Hope to see more of this.

buy essay papers online said...

Excellent website. Lots of useful information here. I am sending it to a few friends ans also sharing in delicious. And obviously, thanks for your effort!

iphone application developers said...

Thanks i like your blog very much , i come back most days to find new posts like this.

mobile application development services said...

I think your blog will easily get more traffics with good branding because its having the good information. so most of them likes your informative blog.

buy cheap twitter followers said...

I really enjoyed this article. It is always nice when you read some thing that is not only informative but entertaining.

russian travel agency said...

I admire the precious information you offer in your articles. I am going to bookmark your site and have absolutely my children visit here often.

tours of russia said...

Written simply and tastefully. It’s pleasant to read. Thank u.

document translation said...

well done! cool!

http://mydayspa56.com/ said...

Thanks i like your blog very much , i come back most days to find new posts like this.

NYC Day Spa Elemur said...

Its a very good post. I was very pleased to find this site.

eyebrow threading nyc said...

I really enjoyed this article. It is always nice when you read some thing that is not only informative but entertaining.

nyc wax said...

Wow... Thanks.. I'm at the first time on your blog! And I like it! Thanks for sharing info. Keep up the good work.

security camera los angeles said...

I would like to appreciate your work and would like to tell to my friends.

security company los angeles said...

This is a nice post in an interesting line of content.Thanks for sharing this article.

Unknown said...

As far as I know, globalessays writing service. You'll find a first-class specialist.