Article Series: 3 Column Step by Step Guides
Here are the steps to convert a default 2 column Minima template in to a three column template with two sidebars on left and right hand sides of the main post area. This conversion will also work on Minima Black, Minima Blue and Minima Ochre templates.
(If you really want to understand what's happening here, read the article series Three Column Templates Explained.)
1) Add a new CSS id selector for the 2nd sidebar wrapper.
- Go to Layout -> Edit HTML
- Locate the #sidebar-wrapper section (Do a Find using your browser)
- Copy that full section and paste below the existing sidebar section (it doesn't have to be below) and rename it to #left-sidebar-wrapper
- Change the float: $endSide to float:$startSide of this newly copied section (See the code snippet below)
#sidebar-wrapper {
width: 220px;
float: $endSide;
word-wrap: break-word; /* fix for ... IE */
overflow: hidden; /* fix for long ... float */
}
#left-sidebar-wrapper {
width: 220px;
float: $startSide;
word-wrap: break-word; /* fix for ... in IE */
overflow: hidden; /* fix for long ... float */
}
width: 220px;
float: $endSide;
word-wrap: break-word; /* fix for ... IE */
overflow: hidden; /* fix for long ... float */
}
#left-sidebar-wrapper {
width: 220px;
float: $startSide;
word-wrap: break-word; /* fix for ... in IE */
overflow: hidden; /* fix for long ... float */
}
2) Introduce a new div element, as a child of the content-wrapper, to be the placeholder for the 2nd sidebar
- Locate the <div id='main-wrapper'> 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-wrapper'>
<b:section class='sidebar' id='sidebar-two' preferred='yes'>
</b:section>
</div>
<div id='main-wrapper'>
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
</b:section>
</div>
3) Expand the width of the other wrappers to accommodate the new sidebar
- Locate the CSS sections called #outer-wrapper, #header-wrapper and #footer
- Change their width property to 880 pixels
#outer-wrapper {
width: 880px;
margin: 0 auto;
...
}
width: 880px;
margin: 0 auto;
...
}
#header-wrapper {
width: 880px;
margin: 0 auto 10px;
...
}
width: 880px;
margin: 0 auto 10px;
...
}
#footer {
width: 880px;
clear: both;
margin: 0 auto;
...
}
width: 880px;
clear: both;
margin: 0 auto;
...
}
4) Do necessary adjustments to margins, padding etc
- Locate the #main-wrapper section
- Insert a left margin of 12 pixels.
#main-wrapper {
width: 410px;
margin-left:12px;
float: $startSide;
...
}
width: 410px;
margin-left:12px;
float: $startSide;
...
}
5) Adjust the max width of the header description to center it in the new expanded header
- Locate the #header .description section
- Change the max-width property to 880 pixels.
#header .description {
...
padding:0 20px 15px;
max-width:880px;
...
}
...
padding:0 20px 15px;
max-width:880px;
...
}
Note: Step 6 is only needed if your Layout Editor does not show the newly added sidebar. There was an issue where the 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 end of the skin denoted by "]]>"
- Add the following code above that line.
/** Page structure tweaks for layout editor wireframe */
body#layout #outer-wrapper {
padding-top: 0;
width:720px;
}
body#layout #header-wrapper,
body#layout #content-wrapper,
body#layout #footer {
padding: 0;
width:720px;
}
body#layout #main-wrapper {
width:400px;
}
body#layout #sidebar-wrapper,
body#layout #left-sidebar-wrapper {
width:150px;
}
]]></b:skin>
body#layout #outer-wrapper {
padding-top: 0;
width:720px;
}
body#layout #header-wrapper,
body#layout #content-wrapper,
body#layout #footer {
padding: 0;
width:720px;
}
body#layout #main-wrapper {
width:400px;
}
body#layout #sidebar-wrapper,
body#layout #left-sidebar-wrapper {
width:150px;
}
]]></b:skin>
Save the template. Switch to Page Elements view and enjoy your 3 column template!








107 comments:
I love you, I love you, I love you! When I first added the code and saved and went to my blog, it was clear I had messed something up; My old right-hand links column was pushed down and a big blank space (presumably my NEW third links column) was to the right of my blog posts column.
So, I went back to your code and carefully checked each one of your instructions, side-by-side with my codes I added in my template layout. Sure enough, I had missed a simicolon and a space. I added those and like magic, my blog now has the columns I want, in the places I want!
I really do love you!
Hi there. Thank you very much for the tutorial. It was very helpful. I just have one question. Is it possible to remove the dotted border from the newly added column in minima and leave it on the others? Thx again.
Thanks so much! I wish I had found your site first ☺
This was the third set of instructions I had found and tried - the first two did NOT work. This was easy and fool-proof - thanks again!
Thank you Thank You! It has worked, and I am finally starting to get my head around what it all means. You are now first on my 'go to' list for all things Blogger. I couldn't recommend your site more highly :)
Many thanks for such a straight-forward explanation of how to implement 3 columns.
One question though - although everything works I would like slightly larger spaces between my columns as I think it looks a little crowded. How do I do that? Do you think it's necessary - afterall you're the expert! (grin)
My blogs are andysayers.blogspot.com and
friendsofenglishmartyrs.blogspot.com
Many thanks
Amazing - worked first time! I tried two different "tutorials" before I found your's. So I tried it on a test-blog. Now all I have to do is add it to my regular blog
Thanks a million!
Will this work for Minima Dark and others as well?
Hmmmm...not working for me. The blog posts need to be more narrow so my right sidebar will fit. Any suggestions?
Not clear what you mean here. These steps will not narrow down the posts column. They will expand the necessary wrappers to fit the 2nd sidebar.
Okay, I obviously don't need to be on the computer at midnight! Got some sleep, reworked it this morning, now it's perfect. Thanks for the instructions!
Well I wanna love you, love you, love you also...... but I couldn't get it to work. :(
Since it work well for others, I tried it six times. The first time it left me with two columns, but the start of the right column was waaay down the page. The other times I tried it, it just moved my main column to the far left, and gave me a wide gutter between the two columns. I see this happened to someone else. Anyone know why? I'm using Minima Black. Woe is me.
Sometimes your new column will not be visible on the blog until you add some widgets to it.
After performing the steps carefully, go to Layout -> Page Elements. Check whether you see the left column there. If so, drag across one widget from the right side. Save layout and view the blog and see.
Talk about overlooking the obvious! It makes sense that a 3rd column wouldn't show if there's nothing in there. Dopey me. ;) I do like to understand how things work, and why things are done a certain way, so I read through (and am still reading) the useful, well-explained info. on your site. It's fascinating stuff! My only suggestion would be to add an eye-catching image that one could include in a post about you and the thorough, easy-to-read info. that you provide, here!
I love you! I love you! I love you! hehe Many thanks!
Thanks for your comments Jim. I can see that you have now converted to 3 columns :)
Help! I have the same problem a couple of others had, where my right column is now waaaay down the page. I am a complete html dummy, so I am not sure what i have done.
Can you help? I am playing with my dummy blog before I touch my "real" one.
thanks.
Deanne
Me again,
Also, for some reason, when I have added a page element to the left column, the page element does not appear on my blog when I click on view blog.
What am I doing wrong?
I use firefox btw.
thanks
Deanne
x
www.deannesdummyblog.blogspot.com
hmmm ok, never mind, it seems to have fixed itself, even though I haven't done anything.
Thanks for the very easy instructions.
You guys rock!!!!
OK fine. It's great that you got it right.
Thank you :)
Hi M,
You mean the dotted border at the bottom of every widget right?
To remove the border of the first sidebar, add this code in to the skin.
#sidebar-wrapper .widget{
border:0;
}
You can copy insert it after the #sidebar-wrapper code.
This one will do the same for the second sidebar.
#sidebar-wrapper-two .widget{
border:0;
}
There is a space before the ".widget" word
If you want more space, you have to do slight adjustments at steps 3, 4 and possibly 5. In step 3, give more width (i.e. more than 880) to the parent wrappers. Spread the additional pixels among the margins in step 4. When increasing the width, your wire frame editor can get affected. If so, you have to give more width to the parent wrappers in step 5 as well.
Increasing the width too much can affect visitors with low screen resolutions.
Yes. It will work on Minima Black, Minima Blue and Minima Ochre without any problem.
Using this for Minima Lefty, however, needs some adjustments.
I have not tried these on the stretch version of Minima.
Just wanted to say thanks, your tutorial really helped me. So thanks!
;o( after reading everyone's comments, i was determined to keep trying until i got it to work ... but after 8 tries and now blogger is telling me this:
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The element type "html" must be terminated by the matching end-tag "".
i am sooo confused ...
my site is classicbride.blogspot.com -- i got the left-hand column to pop up but the right-hand column pushed down.
help! please!
You seem to have deleted some existing code in the process. I strongly suggest that you first create a test blog and try out the change in that. (Besides, having a test blog is always useful to keep your main blog from messing up in experiments)
It's easy. Be a little careful when you copy and paste code in to your template :)
Drop me a mail if you still can't get it. I will guide you through it. (See the Contact link on top)
got it on the first try! awesome :o)
You made that SOOOO EASY!!! Thank you so much, I'm really excited! I was wondering if there is a way to transfer elements from one sidebar to the other in layout (the way you can move elements from the side to the bottom)? My new sidebar is the right one.
Hi Lisa,
You should be able to drag and drop the elements from the left sidebar to the right, just as you do with other areas.
Drop me a mail if you need more help.
(See the Contact link on top)
Thank you. I figured it out, I just couldn't drop an element into the wide open space over there. It had to be above the first element and then I can move it from there. Thanks for a prompt reply!
This is a fantastic hack and I used it on a group blog here. It looks perfect in Firefox, but the right column is not showing up in IE and I have no idea why!! I don't know if there's some other IE hack I need to add to the template...?
Hi,
The IE problem has nothing to do with the 3 column conversion. Your post titled "Cool mystery series from dramatic classics" has an additional <span> tag that mixes up the #fullpost style.
Open that post in Edit Html mode and locate the following string.
"Published by Dial Books<span style="font-size:0;">
Delete the full <span ...> tag in that string and save. You will see the 3 columns in IE.
Jeez, you ARE fast. And you seriously, seriously rock.
It's been harder than I thought managing a group blog with a large number of contributors--it seems like we keep discovering new and exciting ways to screw up the code.
Thank you SO much.
I JUST LOVE YOU!!! You gave the answer to my year-long problem of figuring out a 3-column format for my dark minima. Thank you very much.
The result is perfect indeed...see for yourself www.twistedkamatis.blogspot.com. Thanks again!
AWESOME! Thanks so much! I have tried so many different tutorials on how to do this and none worked nor were they as easy to understand as yours.
Only problem I have is that after saving the template, my header picture is now off to the side instead of centered. How can I fix this? (I'm a html dummy, sorry)
never mind, I figured it out!
THANK YOU!! I had done this before, but not to blogger and I couldn't figure it out for some reason....
Excellent hack - thank you. Had to wrangle with a couple padding issues, but I think it looks pretty sweet. Just need to get a new header pic made now...
http://largeassmovieblogs.blogspot.com
of all the 3 col minima tutorials i found, yours is the best!
Absolutely wonderful!
At first, my right column was all they way at the bottom of the screen, like some other people's were, but I tried again, this time just copy/pasting the entire sections, not just the red parts, and it worked PERFECTLY!!!
Thank you SOSOSOSO much for this wonderful hack!
Just adding my own heart-felt thanks for this fantastic tutorial. I tried it out on a test blog, worked out the kinks, and then adjusted my "real" blog in under 10 minutes - yay!
Of course I have a question, though: I'm having the same prob. Kelly did - some of my header text is off-center. Any suggestions? My blog is http://cakewrecks.blogspot.com/.
Thanks again!
Thank you for putting together a very simple step by step how to. This is my first ever blog and your steps worked flawless.
Hi Jen,
Locate the following CSS rule in your template skin.
#header .description {
...
max-width:700px;
...
}
Change the 'max-width' to 880px.
Thank you again! My header text is centered, and I'm loving the new look. You totally rock.
Thank you so much for your tutorial, it is awesome! I was able to easily create a 3 column template a few months ago. Recently I had ablog designer fix me up with some fancy stuff... but in the process my columns and margins are all askew. The columns are not the same size, the left is too small, there is no space betwenn the left and the posts, and too much between the posts and the right. Also the center column is off center. I could really use a little guidance, and was hoping you could oblige. thank you again for a fantastic site! http://fisforfischer.blogspot.com
Hi, I used your hack on my Minima template and it works great in IE (thanks!) but not in Firefox. In Firefox, the columns go down the page instead of across, and the main post column takes up the entire width of the page, despite my repeated fiddling with the margins (the main page width is now below what the content wrapper would normally allow). I did a lot of customizing of the two column tempate before adding the third, but I can't seem to figure out what's going wrong in Firefox. Any help at all would be appreciated! The domain is reitwrecks.com, it's a blogger page published via FTP.
Thanks!
Hi Lisa,
I replied to you via email.
Hi REIT,
I see your blog the same in both IE and FF and I see only two columns.
Drop me a mail with more details of your problem.
Thank you! Thank you! Thank you! I'd been wanting to do this and didn't want to pay, but didn't know enough about html to figure it out. This worked and I'm so happy!
What an awesome tutorial! Worked like a charm the first time.
My only question: How can I now right-align (right justify) the text in the sidebar widgets that I've placed in the left column?
Thanks again!
Looking at your blog, I see that you have figured out how to right-align text.
Yes! It took a long while, but I finally did figure it out. Thank you very much for following up. And again, thanks for the great tutorial.
Hallelujah!
Someone who REALLY knows what they are doing
AND
how to explain it!!!!!!!!!!!
Thank you soooooooo MUCH!!!!
Ah! It worked! Thank you so much! This is so simple and easy to use, completely non-intimidating for people unfamiliar with computers!
Thanks again!
Thank you very much! This was not at all as confusing as other guides I've used.
Hi! I just updated my blog and it looks really good with 3 columns, but I'm wondering how to 'space' it out across the page (mine sits a little to the left) and for different browsers to accommodate that?
I'll also email you too! Thank you though! Your instructions were fantastic!
So thankful for this! It worked perfectly and was so easy to follow and understand. I've been wanting three columns for so long. Again, thank you!
Hi, I have tried to make 3 columns a dozen times and it never seems to work...I have not only used your tutorial (today 2/1/09) but others in the past and it never works....neither did yours. I have checked and checked the code and it seems to be correct. Help please.
Thanks.
One more thing, my one sidebar shows up across the bottom, at the end of my posts column and the same width. No third column.
Please drop me a mail (see the contact link on top) with the URL of your blog. It's easier to follow up via email. Will get back to you within the course of the day.
Hi, great instructions, I also had tried others before trying yours. I have however one question. Someone else with access to my work tried playing with other offered templates, not realizing that the three column was not going to be available to get back to. Is it stored somewhere that I am not seeing? Or I have to put the data in all over again?
G.
I followed the instruction properly unfortunately I got an error code: bX-y6cz0v. please help me with this. thanks
Hey, it works now! thanks! but can teach me how to put the two sidebar all on the left side?
My 3rd column didn't become visible until I dropped a few gadgets into it. THANK YOU!!! It's beautiful!
thank you , that's worked a treat - great stuff , thank you for sharing :-)
can you help me,please..
i have a problem...
i can't save the template...
i mean, after i go all your steps...
it said
"Invalid variable declaration in page skin: Variable is used but not defined. Input: startSide"...
how can i fixed it????
please help me...i really want 3 collume in my blog...
Help! My right sidebar is now showing below my footer! I have NO IDEA what I've done.
You have a duplicate 'left-sidebar-wrapper'. Go to Edit HTML and check above the <div id='main-wrapper'>. You should find the duplicate instance. Delete it.
Wow...thanks so much!! I have been wanting to do this and didn't see anything on the blogger site. Your instructions are easy to follow and clear. Thanks again!!
THANK YOU! I did this in less than 10 minutes!
I'm having this same problem:
"Invalid variable declaration in page skin: Variable is used but not defined. Input: startSide"..."
i cant see older post link please help..
I'm having the same problem that many others were having. The things that used to be on the right sidebar are on the bottom, above my footer. That is everything but the first gadget (that is on the right) when I go to edit layout, there is no right sidebar. It's below the posts. I've checked it a few times, but haven't fixed it yet. Please help!!
www.fiveroginas.blogspot.com
lacirogina@verizon.net
@ Laci,
You have deleted the existing #sidebar-wrapper when adding the new #left-sidebar-wrapper. Add it back and it should correct your problem.
i love youuuuuuuuuuuuuuuu
but how to make lines between the column?
Thank you so much!!
hi!! thank you for this tutorial, i got it on the first time! only thing: it works great on IE but on Firefox the left column is placed in the middle, how can i solve that? i tried item 6 but it doesn't work. thanks again!
@ StD
Can't be. Is it the blog linked from your profile? When I viewed it in FF, it was OK. Please email me with blog URL and problem description.
sorry! it fixed itself a few minutes later, but thanks for the quick response
thanks for this - I was searching around to find a way to centre the blog description, this worked perfectly...
Nice tutorial, I used your great work on my blog "http://funpcapps.blogspot.com/". I'm waiting for your next fantastic job, Thank's...
Hi
I'm obviously missing something very simple as the new column in appearing to the right of my main blog. I've tried this three times - have you any suggestions.
Thanks so much for getting back to me so quickly I really appreciate it. You rock! You should have a paypal account linked to this so we could all donate you a few dollars or something. I'm well chuffed.
hi! thanks so so much for this amazing template instructions! im a blog beginner and it was so so easy. one thing.. is it possible to widen the central column to allow images of 750px - 1000px as standard image post? something similar to thesartorialist?
thanks :)
@ Anonymous
See this wider minima guide for instructions on how to widen Minima central column.
thanks...i'll now follow your blog...
Your instructions were the only ones that helped me with this! THANK YOU!
Everthing worked perfectly except that it added my second column on the right?
Was that the intention? My understanding was that this would add a column on the left? I copied and pasted your code exactly, and went back through to see where I could have messed it up to add it on the right and I can't find where that could have happened.
Do have any idea where I might have messed up?
Disregard the above question. I figured it out. I forgot to change it to "startside."
Thanks for this excellent tutorial.
My Hero
Man,great tutorial.I've try to make it by my one,but without succes.Tks ;)
I have completed the transition based on another version of this tweak, and I'm struggling w/ one of my wrappers. I believe it's from your site http://thebloggerguide.googlepages.com/scribe_bg_paper_top_ex.jpg, when you look at my blog, it's obvious that it's not "stretched" enough to cover my blog page. Suggestions on how to balance this off? Thanks in advance!
@ The Queen of Chaos
You seem to have increased the width more than the provided images can cover. Either reduce the width as per the Scribe tutorial or widen the background images as you wish.
Thanks for the response! I have tried to widen the image to no avail, either I'm trying in the wrong place or it can't be widened?
THank you!! I've tried sooooo many different (similar tho) from soooo many website, only yours can give me exactly what I want!! Hahahahha^^ Good job, people.....
You are AMAZING! Thank you SOO much! I've lost count of how many tutorials I've tried for this and none of them work, I was on the verge of giving up but your site was not only clear and helpful and grammatically correct (you have no idea how much easier that makes it to understand!) but it actually WORKED. I officially love you.
Thanks for your great walk-through. I got all three columns displaying, but now I can't seem to figure out how to make the padding between the sidebars even- there is considerably more padding on the right than the left of the main body...
The blog is haochidc.blogspot.com
Ive tried several ways to do the 3 columns, but yours is teh only that worked! THANK YOU!! One question though, is there away to space out the 3 columns so they are not so tight??
www.mizzjenna.blogspot.com
xoxo THANKS
just genius u r the man hands down keep it up knowledge is the key to the toughest safe
I have a question...
Since about 2 weeks my 2nd and 3rd column that used to be on the right hand side have moved to the bottom. (below the posts).
I cannot seem to figure out what happened as I haven't changed anything recently?
Could you plse have a look and let me know if you have an answer?
The site: www.recruitmentnewstyle.com
Thanks so much in advance!
Kind regards,
Jakolien
Amsterdam, The Netherlands
if i use the left sidebar for adsense ads, can i control the ads also appear on bottom of every posting also? but i do not want the ads appear in right sidebar? how ?
if i want the ads appear on left sidebar and bottom of every posting , but i do not want the ads appear in right sidebar? how to edit the HTML?
Thank you sooooo much!!! This was great, and I'm especially happy you made it so simple even I could do it by myself! :)
hi, thanks A LOT for this, but how do i add a background colour that fills the whole sidebar (so not only where i added a gadget, but from top to bottom)?
thanks in advance~
Yay it worked! Thank you. I linked back here :)
Thanks so much. I tried a couple of times and finally got left & right columns.
Two questions: #1 the titles on the side columns are really BIG. Distracting and not pleasing to the eye. How can I reduce the pixels for that lettering?
#2 Have lost the ability to control the color of some of the fonts, especially Post Headings. Please help.
Except for these fiddly problems - the appearance is now great!!!
Hello - your guides are so fabulous!! Please can you help me widen the left and right hand side columns of my 3 column Minima layout?
Thank you!
Charlotta
http://spaceforinspiration.blogspot.com/
it works it works!!!!!! thanks thanks thanks!!!!!
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.