Saturday, July 23, 2011

Add A Neat 5 Column Category Label Section To Your Blogs Footer


Displaying all labels in the sidebar is not an option as it would take up too much room.So i have placed them listed alphabetically neatly in the footer across five columns.I then display some of the main labels in the sidebar with a link that jumps directly to the list in the footer for people to navigate.I find this a great use of space and in this Blogger Tip i will show you how i have done it.Below you can see some screenshots and i have the links to each site for you to see the section in action.

Blogger Tip Category Wrapper


Add 5 Column Category Label Wrapper Section To Blogger Footer


Step 1. We start this Blogger tip by going to your Blogger Dashboard and clicking Design > Edit Html

Design Edit Html Blogger

Step 2. Find the following piece of code in your blogs Html :
]]></b:skin>

Step 3. Copy and paste the following code Directly Above / Before ]]></b:skin>

/*Start Category Wrapper Css*/
#category-wrapper {
width:900px;
clear:both;
margin:0 auto 10px;
padding-top:15px;
line-height: 1.6em;
text-align:left;
border-bottom:0px solid #efefef;
}

.cat {
color: #000000;
line-height: 1.5em;
}

.cat ul {
list-style:none;
margin:0 0 0;
padding:0 0 0 8px;
}
.cat ul li {
float:left;
width:18%;
list-style-type: none;
margin: 0 0 5px;
padding-left: 12px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxmF547CTQWnXk_yTg2LyWrt3_J1SfWYiTdi7SIjrvcU-VxmBDgpeae1ZtdePyR9z9wXi2WVi3lmieCE8NRNBCAfc4xkBYs3rbfieuQY0WwrG-_JUydUyW_-RUGnkN8WhovSJYLwm4DZjD/s1600/bullet-suyb.gif) no-repeat left center;
}

.cat .widget {
border-bottom:0px dotted #ddd;
margin:0 .5em 1.5em .5em;
padding:0 0 1.5em;
}
/* End Category Wrapper Css Info @ http://www.spiceupyourblog.com */

Edits And Options

Width 900px; - Total with of all columns, You may need to change to suit the width of your blog.

width:18%; - Width in percentage of each column, We divided 100 by 5 and gave a little leg room so each column is 18% of the total width.If you increased this to say 23% you would then have 4 columns, 31% would leave you with 3 columns and so on.

In blue is the list bullet image beside each label and you can change it if you please.

Step 4. Find The Following Code In Your Blogs Html

<div id='footer-wrapper'>

Step 5. Copy and Paste the following code directly Above / Before <div id='footer-wrapper'>

<div id='category-wrapper'>
<b:section class='cat' id='cat'>
<b:widget id='Label99' locked='false' title='Categories' type='Label'/>
</b:section>
</div>

Step 5. Save Your Template, the 5 column labels section should not be on your blog !

Linking Directly To The Labels Section


If you now wanted to link to this section as i have done on both blogs this is the link you would use, you can of course change the text 'All labels' :

<a href='#category-wrapper'>All Labels</a>

So in a way the address of the category wrapper is #category-wrapper and that's what you would add to a link in a menu bar or regular hyperlink.That's it for the category wrapper, make sure to check out more of our Blogger Tips.

No comments:

Post a Comment

HackingUniversity - Hacks • Pranks • Tricks • How-Tos.