pageTracker._initData(); pageTracker._trackPageview(); } catch(err) {}
SidekickBlog

Tag: widgets

Howto: Add footer widgets to the Mimbo theme

by Kunal Jain on Jun.12, 2009, under design

I had promised (weeks ago) to post a tutorial on how to add footer widgets to the Mimbo 3.0 theme once I figured out how to add them to http://www.recipemobile.com.  Although, I was able to make the necessary tweaks to recipemobile, I have not had the time to post a tutorial.  So, for now, I am publishing the code I have added to enable the footer widgets.  I hope to be able to update this post to a full tutorial soon.

You will have to edit 3 files in your theme:

Functions.php

In functions.php, add the following code under the existing widget code:
if ( function_exists(’register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Mimbo Footerbar1′,
‘before_widget’ => ‘<div class=”clearfloat”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”widgettitle”>’,
‘after_title’ => ‘</h3>’,
));

if ( function_exists(’register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Mimbo Footerbar2′,
‘before_widget’ => ‘<div class=”clearfloat”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”widgettitle”>’,
‘after_title’ => ‘</h3>’,
));

if ( function_exists(’register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Mimbo Footerbar3′,
‘before_widget’ => ‘<div class=”clearfloat”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3 class=”widgettitle”>’,
‘after_title’ => ‘</h3>’,
));

Footer.php

In the footer.php file, add the following code right under the footer div definition:

<div id=”footerbar” class=”clearfloat”>
<div id=”footerbar1″>
<h3>1st heading</h3>
<?php if ( !function_exists(’dynamic_sidebar’) || !dynamic_sidebar(’Mimbo Footerbar1′) ) : ?><?php endif; ?>
</div>
<div id=”footerbar2″>
<h3>2nd heading</h3>
<?php if ( !function_exists(’dynamic_sidebar’) || !dynamic_sidebar(’Mimbo Footerbar2′) ) : ?><?php endif; ?>
</div>
<div id=”footerbar3″>
<h3>2rd heading</h3>
<?php if ( !function_exists(’dynamic_sidebar’) || !dynamic_sidebar(’Mimbo Footerbar3′) ) : ?><?php endif; ?>
</div>
</div>

Style.css

Now, all you have to do is edit your style.css files to add the appropriate styling to the footers.  This is the css code that I have used to get you started.

#footerbar {
        display:block;
        clear:both;
margin-top:-10px;
list-style-type: none;
list-style-image: none;
margin-bottom:15px;
}
 
#footerbar ul {
padding-left: 15px;
}
 
#footerbar h3 {
        color:#dadada;
        font-family: 'Tempus Sans ITC','Bradley Hand ITC','Comic Sans MS','Zapf-Chancery', cursive;
        font-size: 18px;
	letter-spacing:0.15em;
border:none;
margin:0px;
}
 
#footerbar h3.widgettitle {
        color:#dadada;
border:none;
}
 
#footerbar a {
display:block;
}
 
#footerbar1 {
        float: left;
margin-right:10px;
        }
 
#footerbar2 {
        float: left;
        }
 
#footerbar3 {
        float: right;
margin-left:5px;
        }		
 
#footerbar1, #footerbar2, #footerbar3 {
width:32%;
}

Post to Twitter

  • Share/Bookmark
6 Comments :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...