Tutorial: Add 3 Centered Columns to WordPress Footer

by John P.

OMB 3 Column FooterThis post describes how to add variable width, centered columns of stuff to the Worpress footer. Not sure what I mean? Well, look at the bottom of this site.

  • These columns are fluid width, so it works in different browser resolutions and as you resize the page the columns resize.
  • The columns maintain their centering on the page even as it is resized.
  • You can put anything you want in the columns, though I’ve got text and lists in them for demonstration purposes.
  • It should work with other blogging platforms as well as plain old HTML Web sites.


First, you need to add the following three lines of code to your Stylesheet (you can put them anywhere, but I suggest at the very end). Depending on the theme you are using it is likely either called stylesheet.css or stylesheet.php.

#footercolumns {padding:2em 0 0 10%}
#footercolumns .block {float:left; width:30%; margin:0 0 0 2.5%}
#footercolumns .first, * html #footercolumns .first{clear:both; margin:0}


Next, add the following code to your page footer. In WordPress it is called Footer.php and you should add these before the </body> code.

<div id="footercolumns">
<div class="inside">
<div class="block first">
<h3>First Column of Stuff</h3>
<ul>
<li>Here is some stuff.</li>
<li>And some more stuff</li>
<li>Still more stuff</li>
</ul>
</div>
<div class="block">
<h3>Second Column of Stuff</h3>
<ul>
<li>Here is some stuff.</li>
<li>And some more stuff</li>
<li>Still more stuff</li>
</ul>
</div>
<div class="block">
<h3>Third Column of Stuff</h3>
<ul>
<li>Here is some stuff.</li>
<li>And some more stuff</li>
<li>Still more stuff</li>
</ul>
</div>
</div>
</div>
<br clear="all" />

Now, I can’t guarantee this will work for 100% of the themes out there, but it should work for most of them. Keep in mind that if you are using a fixed width theme, especially one that is not centered, this may look strange. In that case you may want to switch to a more flexible and accessible theme like my Rapid Access.


{ 32 comments… read them below or add one }

1 johnnykarout July 15, 2007 at 5:17 pm

wow thats what i was looking for, it is really stated in a good fashion,
Thank you
Johnny

Reply

2 Tanya Ryno December 3, 2007 at 11:14 am

This is exactly what I was looking for … and BTW it worked on my site … the platform is Squarespace, so I wasn’t sure if it would work.
Of course, now I have to go work on it, as it currently still says “more stuff here.”
Thanks again!

Tanya Ryno
LIFT Magazine

Reply

3 Roman January 8, 2008 at 9:48 pm

Awesome, i’ve been trying to figure out how to simply integrate a nice footer into my site for a while now, thanks!

Reply

4 Brandon April 18, 2008 at 1:58 pm

I’ll have to give this a try and my style, if I can figure it out..lol

Reply

5 vertito June 13, 2008 at 5:59 am

it worked perfectly!!! nice and great, all i need to do is tweak the colors, fonts, and background to make it a little more cunning :)

thanks!

Reply

6 pseudus June 29, 2008 at 9:59 am

Would someone please be kind enough to explain what to change to make these columns center justified.

Thank you.

Reply

7 Dianne June 29, 2008 at 10:14 am

Awesome tutorial! I had tried copying the css & stuff from another theme, but it didn’t work at all. Your quick and easy tutorial worked like a charm!

Reply

8 George October 15, 2008 at 8:58 pm

Hello John,
I implemented this trick in my blog, I would like to do some fine tuning in this, Can you please visit my site and suggest how I can include these three columns before the copyright message band.

Also please guide how I can add stuff like recent posts,recent comment etc.
Thanks

Reply

9 Sandra October 26, 2008 at 9:14 pm

Thanks a lot. This was exactly what I was looking for.
You saved me a lot of time!!!

Reply

10 Jazili October 28, 2008 at 9:48 pm

Wow this is what I,ve been loooking for this last 2 days.., so I manage to add the column but I’ve lost a sight here how or where I use the column…., any ideas…

Thanks.

Reply

11 Joshua January 25, 2009 at 7:07 pm

Great tutorial – I’ll be sure to keep coming back.

-Josh

Reply

12 Jaydip Parikh March 19, 2009 at 8:41 am

I was looking for the same code for making my footer better. Thanks a lot for sharing Great tutorial.

Reply

13 woodman April 1, 2009 at 8:32 am

It is a good article,thanks for your sharing.

Reply

14 Hongservane June 14, 2009 at 7:28 am

Hello John,

Your tutorial has been very useful for mu purposes, so I have translated it into french on my blog:


http://hongservane2.free.fr/?page_id=694

Please let me know if you want more official aknowledgements on the page. Thanks a lot for sharing,

Hgsvn

Reply

15 Nishanthan S. July 15, 2009 at 10:34 am

Thanks. I just copied the style to my website footer. Now it is looking much better.
Thank you ! :)

Reply

16 Waqas Ahmed July 17, 2009 at 3:41 pm

GREAT…
Thanks for the help.
was wasting my time

Reply

17 Kesha August 22, 2009 at 11:06 pm

This is great…thank you soooo much for posting…it’s the first link I came to upon doing a search for this topic on google and it’s the last place I had to look!! my new site redesign is going to look great with the type of footer!

Reply

18 Claudio September 27, 2009 at 9:32 am

Thanks John, it´s basic to css coders but usefull stuff to ppl like me with weak memory

Reply

19 arquigrafico January 9, 2010 at 10:16 pm

Thank, i will try to do that, my blog http://www.arquigrafico.con need that!
I am using thesis theme.

Reply

20 RozaniGhani February 25, 2010 at 2:17 am

This post is serious cool. I very like this post. I have been searching for it.
Currently, I been switching from blogspot to wordpress. This tutorial sure helps me a lot. I already know how to do 3 column footer in blogspot, just now I just want to try 3 column footer in wordpress. Its really works. I appreciate more if this 3 column can be widgetized in your next post. Thank you very much.

Reply

21 thechatter April 5, 2010 at 12:12 pm

hi mate. I have done all but there is error when I put code in footer.php

Reply

22 Jeff Arnold April 9, 2010 at 11:01 am

John:

Thanks for the quick fix. The off-center columns I had in my footer were driving me crazy!

Reply

23 Roceller May 21, 2010 at 2:07 am

How about in the Thesis Theme? I’ve tried to use the code and put it in the footer.php but the result is, the stuff is appearing in my header and not in the footer. Any help?

Reply

24 John P. May 21, 2010 at 1:59 pm

Roceller,

First, install the Thesis OpenHook Plugin.

Then, down at the very bottom of the plugin configuration you will see areas for Before Footer, Footer, and After Footer. Try putting the code in one of those and you should be good to go. :-)

John P.

Reply

25 Mads August 30, 2010 at 4:10 pm

Hey John! I have tried using this guide, but it just wont work. I get the three colums like this:

column 1

column 2

column 3

instead of

column 1 columns 2 colums 3

Do you know what may have caused this error? I am using wordpress 3.0.1

Reply

26 Dennis "DennisKnows" Marshall October 20, 2010 at 9:34 pm

How did you fix the problem? I have the same issue.

Reply

27 Dennis "DennisKnows" Marshall October 20, 2010 at 8:36 pm

Hey @Mads; how did you get your columns to align right because I’m having the same problem. Also, what is the name of your content slider. I love that one. Thanks

And John, if you could tell me, it would be great. Why my columns are appearing as
column 1

column 2

column 3

instead of

column 1 columns 2 colums 3

Do you know what may have caused this error? I am using wordpress 3.0.1

Reply

Leave a Comment

Previous post:

Next post: