Thursday, 13 June 2013

Adding 3 Column Blog Footer

Finding it hard to add widgets to your blog without overstuffing thesidebar? Ahh well, maybe it’s time to add a footer to your blog. This tutorial will show you how to do just that -install a three-column footer.three-column footer 2
  1. Login to your Blogger account (if you haven't done so already). 
  2. Go to Template > Edit HTML.
  3. Back up your template.
  4. Look for the existing footer code near the end of your HTML. It might look something like this:
    <div id='footer-wrapper'>
    <b:section class='footer' id='footer'/>
    </div>
    if you already have contents in the footer, the code should be longer.
  5. Copy and paste the code below immediately under the footer </div>. This code will create 3 new gadget containers (one for each column) under the existing footer container.
    <!-- three column footer HTML Start by BloggerSentral.com -->
    <div id='new-footer-wrapper'>
    <div id='column1-wrapper'>
    <b:section class='new-footer' id='new-footer1' preferred='yes'/>
    </div>

    <div id='column2-wrapper'>
    <b:section class='new-footer' id='new-footer2' preferred='yes'/>
    </div>

    <div id='column3-wrapper'>
    <b:section class='new-footer' id='new-footer3' preferred='yes'/>
    </div>
    <div style='clear: both;'/>
    </div>
    <!-- three column footer HTML End -->
  6. Copy the code below and paste it in CSS section, before ]]></b:skin>.
    /* three column footer CSS Start by BloggerSentral.com */
    #new-footer-wrapper {background: #E1E2B8; margin: 0 auto;width:98%; padding: 0 10px 10px 0;}
    #column1-wrapper, #column2-wrapper, #column3-wrapper { float: left; display:inline-block; width: 33%;padding: 0px 0px 0px 0px; text-align: left; word-wrap: break-word; overflow: hidden;}
    .new-footer h2 { margin: 0px 0px 0px 0px; padding: 4px 10px 4px 10px; text-align: left; color: #222222; background: #C1C298; font-weight: bold;font-size: 0.9em;}
    .new-footer .widget { margin: 10px 0 0 10px; border: 1px solid #F1F5CA; background: #F7FCDF;}
    .new-footer .widget-content { padding: 0px 5px 5px 5px; }
    .new-footer ul { list-style-type:square; margin-left:15px; }
    /* three column footer CSS End by BloggerSentral.com */
  7. Save the template and go to Layout. You should have the 3 empty footer containers added at the bottom of the layout.footer container
  8. You can now drag and drop the gadgets from the existing footer or sidebars into the new footer containers. The end result should look something like this.three column footer
  9. If the columns are not distributed evenly, try adjusting the width in line 3 and right margin in line 5 of CSS code (in step 6).
  10. Once satisfied with the result, if you want you can go back to the old footer code in step 4 and delete it (from <div until </div>).

No comments:

Post a Comment