Article Series: 3 Column Templates Step by Step Guides
Here are the steps to convert a Blogger default 2 column Rounders template in to a 3 column template with sidebars on left and right hand sides of the main post area.
(If you really want to understand what's happening here, read the article series Three Column Templates Explained.)
(Note: Ensure that you backup your template before you start making any changes, to be able to revert back in case anything goes wrong.)
1) Add a new CSS id selector for the 2nd sidebar wrapper.
- Go to Layout -> Edit HTML
- Locate the #sidebar-wrap selector (Do a Find using your browser)
- Copy that full section and paste below the existing sidebar section (it doesn't have to below) and rename it to #left-sidebar-wrap
- Change the float: $endSide to float:$startSide of the #left-sidebar-wrap selector (See the code snippet below)
#sidebar-wrap {
width:240px;
float:$endSide;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long ... IE */
overflow: hidden; /* fix for long non-text ... float */
}
#left-sidebar-wrap {
width:240px;
float:$startSide;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long ... IE */
overflow: hidden; /* fix for long non-text ... float */
}
width:240px;
float:$endSide;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long ... IE */
overflow: hidden; /* fix for long non-text ... float */
}
#left-sidebar-wrap {
width:240px;
float:$startSide;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long ... IE */
overflow: hidden; /* fix for long non-text ... float */
}
2) Introduce a new div element, as a child of the outer-wrapper, to be the placeholder for the 2nd sidebar
- Locate the <div id='main-wrap1'> element.
- Copy the code shown in red, above that section (this has to be above)
<div id='crosscol-wrapper' style='text-align:center'>
<b:section class='crosscol' id='crosscol' showaddelement='no'/>
</div>
<div id='left-sidebar-wrap'>
<div id='sidebartop-wrap'><div id='sidebartop-wrap2'>
<b:section class='sidebar' id='left-sidebartop'>
</b:section>
</div></div>
<div id='sidebarbottom-wrap1'><div id='sidebarbottom-wrap2'>
<b:section class='sidebar' id='left-sidebar' preferred='yes'/>
</div></div>
</div>
<div id='main-wrap1'><div id='main-wrap2'>
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
</b:section>
</div></div>
3) Expand the width of the parent wrappers to accommodate the new sidebar
- Locate the CSS section called #outer-wrapper
- Change its width property to 980 pixels
#outer-wrapper {
width: 980px;
...
}
width: 980px;
...
}
4) Do necessary adjustments to margins, padding etc
- Locate the #left-sidebar-wrap section
- Insert a right margin of 7 pixels.
#left-sidebar-wrap {
width:240px;
float:$startSide;
margin:15px 7px 0 0;
...
}
width:240px;
float:$startSide;
margin:15px 7px 0 0;
...
}
5) Modify and expand the background images as necessary.
- Add a template variable to define the image host location as explained here. (This step will open up in a separate window. Return to the next bullet point after that)
- Locate the following CSS selectors.
- Replace the URLs of the images to the ones shown in red below.
#header-wrapper {
background:url("$imageHost/rounders_corners_cap_top_w.gif") no-repeat $startSide top;
...
}
#header {
background:url("$imageHost/rounders_corners_cap_bot_w.gif") no-repeat $startSide bottom;
...
}
#footer-wrap2 {
background:$titleBgColor url("$imageHost/rounders_corners_cap_top_w.gif") no-repeat $startSide top;
color:$titleTextColor;
}
#footer {
background:url("$imageHost/rounders_corners_cap_bot_w.gif") no-repeat $startSide bottom;
padding:8px 15px;
}
background:url("$imageHost/rounders_corners_cap_top_w.gif") no-repeat $startSide top;
...
}
#header {
background:url("$imageHost/rounders_corners_cap_bot_w.gif") no-repeat $startSide bottom;
...
}
#footer-wrap2 {
background:$titleBgColor url("$imageHost/rounders_corners_cap_top_w.gif") no-repeat $startSide top;
color:$titleTextColor;
}
#footer {
background:url("$imageHost/rounders_corners_cap_bot_w.gif") no-repeat $startSide bottom;
padding:8px 15px;
}
Note: Step 6 is only needed if your Layout Editor does not show the newly added sidebar. There was an issue where Firefox browser didn't show a 3 column template fully in the edit mode. But Blogger reports that the issue has been fixed now.
6) Modify the CSS rules for the wire frame layouts editor.
- Locate the section that starts with "/** Page structure tweaks for layout editor wireframe */"
- Replace that entire section with the following code.
/** Page structure tweaks for layout editor wireframe */
body#layout #header-wrapper,
body#layout #outer-wrapper,
body#layout #footer-wrap1 {
width:830px;
}
body#layout #main-wrap1 {
width: 485px;
margin-right:10px;
}
body#layout #sidebar-wrap,
body#layout #left-sidebar-wrap {
width:150px;
}
]]></b:skin>
body#layout #header-wrapper,
body#layout #outer-wrapper,
body#layout #footer-wrap1 {
width:830px;
}
body#layout #main-wrap1 {
width: 485px;
margin-right:10px;
}
body#layout #sidebar-wrap,
body#layout #left-sidebar-wrap {
width:150px;
}
]]></b:skin>
Save the template. Switch to Page Elements view and enjoy your 3 column template! (The new sidebar might not be visible until you add some gadgets to it)
Note: You are free to use the images provided by me. But if you change your template according to this tutorial and use those images, please add the following code shown in red, right to the end of your template, in the place shown. It will simply link to this blog.
</div>
<a href="http://bguide.blogspot.com/2008/02/3-columns-step-by-step-guides.html">Three Column Modification</a> courtesy of <a href="http://bguide.blogspot.com">The Blogger Guide</a>
</body>
</html>
<a href="http://bguide.blogspot.com/2008/02/3-columns-step-by-step-guides.html">Three Column Modification</a> courtesy of <a href="http://bguide.blogspot.com">The Blogger Guide</a>
</body>
</html>








38 comments:
Thank you so much for this! I made all the changes this morning and the whole thing took less than twenty minutes. I'm currently using the .gif-files you provided but I will probably make my own later (which goes for all the corners, to make them blend in better with my custom background). I have one question, though. The new sidebar seems to "inherit" the background and main/title text color of the first sidebar - as it should - but it seems to take the link color(s) from the blog main default settings. In my case, that means that they don't look so good against the background. How do I get it right? (See the left column of my blog.
Thanks again for your help!
It did fix my problem! Thank you so much for your time! :)
I used your instructions for the Minima template for creating a 3-column and it was incredibly easy! Thank you!
Since it was so easy, I figured I'd give the Rounders template change to a 3 column a try, too, but I am getting this message:
"More than one widget was found with id: Text1. Widget IDs should be unique."
Can you please tell me what to do?
Thank you.
I used your instructions after trying some other pre-made 3-column templates. It works but on the left column of my blog the widget titles don't have the dotted border underneath. If you look at the right side though, it still works over there.
Thanks for your response.
I got things up and running by deleting the entire widget string (as per your instructions in the comments section in the Minima article). If I find that I have problems, I will try it this way.
So far, so good.
Thanks for making the transition easy. I'll be sure to put in a good word about you and a link to your blog when I'm sure things are running smoothly.
Thank you!
hi. I'm trying to insert a third column (3 column templates: rounders: left and right sidebars). i can generate the space to the third column, but its appears at the end of the second column (below the second column) and not at the right side of it.
What could be the trouble?
Thanks in advance for your response,
regards,
LucĂa
Usually, the problem you stated arises as a result of the parent wrappers not being expanded enough. In this case, it is the #outer-wrapper.
Check whether you performed step (3) correctly.
The images provided in this tutorial are for the Rounders template and you use the Rounder 3 template. Hence the small color difference. I have made the required images for your template. Change the "rounders_corners" part to "rounders3_corners" for all the images you used in step 5.
E.g.
http://thebloggerguide.googlepages.com/rounders3_corners_cap_top_ex.gif
Hi Christine,
Add the following CSS rules to your template skin.
#left-sidebartop a {
color: #ffffff;
}
#left-sidebartop a:hover {
color: #e6e6e6;
}
#left-sidebartop a:visited {
color: #e6e6e6;
}
That should fix your problem.
In the Edit HTML mode, search for the string "Text1". You must have two text widgets with the same id. (i.e. id="Text1")
Change one of them to id="Text2". If you have more than two, name others as Text3 and so on.
Hi Sam,
Copy and paste the following CSS code in to your template skin.
#left-sidebartop h2 {
line-height:1.5em;
color:#223344;
border-bottom: 1px dotted #223344;
margin-bottom: 0.5em;
font: normal bold 100% 'Trebuchet MS',Verdana,Arial,Sans-serif;
}
#left-sidebartop a {
color: #225588;
}
#left-sidebartop a:hover {
color: #225588;
}
#left-sidebartop a:visited {
color: #225588;
}
THIS WAS GREAT, very easy to use. Thanks!
thanks very,very much for the tutorial.
this has been really helpful!!!
Hi there! I wanted to thank you so much for this post and the great revision to the Rounders template. I did use your image links, and I wanted to share the finished product with you: www.merujo.com
Cheers from humid DC,
Merujo
Thanks! That was super easy and my site looks great.
Thank you so much for the instructions. It was great! Very easy to follow! I have a concern: The left column is connected to my header and the center column, it doesn't have that buffer zone ( see blog). Any suggestions on how to fix this? Thanks again! :)
Hi Mindy,
There's a minor mistake in your CSS.
#sidebar-wrap {
width:240px;
float:left;
margin:15px 7px 0 0; <-- here
...
}
The margin property should change as:
margin:15px 7px 0;
Delete one zero from the last two. That should put the left sidebar in the right place.
Thanks for your help with this post! I still have a few question. I would like for the middle column to be a little wider but I can't seem to get it to work. Also, my blog header needs to extend out to the end of the title bar. How can I fix this?
Thanks again!
Hi Angel,
Have a look at this post on how to increase the width of the main column. But remember that the 3 column fix and width increase given in the two articles will not work together.
If you want both to happen, then you need a different set of images for the borders.
Your header image, too, should be adjusted for the new width.
Cheers,
ids
Thank you for putting this up!!!!
hi ive tried out ur code and it works for the most part. except that the gap between the new side bar on the right and the main post area is smaller..
what are the variables i need to adjust to increase or reduce the gap between the sidebar and main post area.
also id like to slim down the sidebar, ie reduce its width. without affecting the content ie not have half the widgets i have in the be cropped or something.. is that possible ? if so what variable ?
and finally u mention here u can ave a 3 column template with a wider post area. do u think it would be possible for you to show us how to go about that, as you mentioned the two posts to these two things are seperate so wont work together.
The thing about all Rounders templates is that they use images to get the 'rounded' effects in the headers and the columns. Therefore, the width of these templates are governed by the width of those images.
So, in case of Rounders, changing the width of a sidebar or the main post area is not a matter of just changing some variable. You need the correct images as well.
The comment that talks about the wider post area has a link to it. You can also reach it from the "Wider Two Column Guides" link at the top navigation bar.
Why those two guides won't work together is because they use the same set of images. If you want to add a second sidebar AND increase the width of the post area, then a different set of images are needed.
If you want custom images, just drop me a mail.
Hope this helps,
ids.
hi,
what i want is exactly that.
id like to have a slimmer side bar and a wider post area- together.
but i have a small concern, if you slim down the side bar does it affect the widgets that i add on to it ? or already have.
for eg if i have a pic in one widget will the pic be cropped when i slim down the side bar?
here is my blog. its just a test so not much content on it.
http://flysliptesting.blogspot.com/
and here is the blog i will eventually change http://fly-slip.blogspot.com/
also how can i email you ? thanks again for the help :)
See the 'Contact' link in the top navigation bar.
It's bloggerguide@gmail.com
Nice template...
Thank`s
Thanks so much for this.
Is there any tweak to add tabs up top of the blog that point to stand-alone pages?
This one explains how to put a text-based navigation bar at the top. Currently there is no guide for creating tabbed-button navigation.
Thanks You so much sir....I appreciate that you have done a wonderful job that helped me to redesign my template.
Kumaran.
Thanks much for the walkthrough. Very helpful.
Hi,
I redesigned my rounders template to three column template with right and left side bars. But I would like to have the sidebars extend to the bottom of the page ie. extent along with content. Right now it looks like hanging and I searched in google but in vain. I found something about faux columns and all but I am unable to execute with this rounders template.My blog is http://www.stockanalysisonline.com/
Could you please help me out with this?
Thanks in advance.
Kumaran
Thank you very much for these clear and precise instructions. They worked perfectly!
Two questions: I'd like to make the font size in the far-left and far-right columns smaller than the font in the middle column. Is there an easy way to do this?
Second, How do I post content into the white box below the first green box in the left-hand column?
Thank you in advance!
http://whatsforsupper-juno.blogspot.com/
See this guide.
The example there is for Minima. But it will work for Rounders as well. But in the Rounders template there is no .sidebar selector. So just add the following.
.sidebar {
font: $sidebarfont;
}
hey man
I love the blog info - thanks
I have now got the rounders three template but would like to make the sidebars thinner and the main post area a touch bigger
any suggestions would be great
my blog so u can see what i mean -
http://wwwneilmctcom.blogspot.com/
should say the blog is going to fit into my new website when its done so i think thinner sidebars would look much better
again thanks for any help - if u want i can stick a link on my site for u to say thanks if u can sort me out
thanks 2 you very much boss........
I want 2 see your all post
& I must do it..........
Thanks again
Thank you! My Rounders 2 template has three columns now. But I still have a dilemma. I want the sidebars and the post to be of the same length. Now that I have tweaked my template the instructions from other sites are not working!!!!
Please help.
Post a Comment
Thanks in advance for all your comments and suggestions. They are very much appreciated.
IMPORTANT:
If you have a specific technical question, please email me with a description of the problem and the blog's URL.