dimanche 7 novembre 2010

Excellent Tabbed Sidebar Gadget Section For Blogger

The Tabbed Sidebar Section is another very popular and very practical feature we see on most of the best Blogs.A tabbed sidebar section is an area on your sidebar with usually three (But can be more) headings readers can toggle through.On most blogs (Including this one) this section will contain a list of Popular Posts, Recent Posts, And Labels, although some blogs use the third section for recent comments.On your blog you can add any gadgets you like to the Tabb's.

Live Demo - At the time of writing i have the Tabbed Sidebar Section here on Spice Up Your Blog.You can also see a version on Social Icon Studio.

ScreenShot

tabbed sidebar section for blogger

The Tabbed section i will help you add to your blog in this post is by far the best available for Blogger.It comes thanks to Abu Farhan and is much more customizable than any other.The new best option in this tabbed gadget is the ability to place it anywhere down your sidebar, previous tabbed gadgets for Blogger had to be at the very top or bottom.Depending On the width of your sidebar you can have as many tabs in the section as you like.

While adding the code to your template is quiet simple there are some settings at the end that can be confusing, So make sure to Back up your template.

Add Tabbed Sidebar Section To Blogger

Step 1. In your dashboard click 'Design' > 'Edit Html'





Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - More Info)

]]>

Step 3. Copy and paste the following code Directly Above / Before ]]>

/* Tabbed Sidebar Widgets www.spiceupyourblog.com
--------------------------------- */
.widget-wrapper2{
border:1px solid #494e52;
background-color:#636d76;
padding:8px;
}

.widget-tab {
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-topright:5px;
-webkit-border-radius-bottomleft:5px;
-webkit-border-radius-bottomright:5px;
-webkit-border-radius-topright:5px;
background:#FFFFFF url(http://i195.photobucket.com/albums/z105/dantearaujo/tabcontentbg.gif) repeat-x scroll left bottom !important;
border:1px solid #CFCFCF;
font-family:Arial,Helvetica,sans-serif;
padding:15px !important;
}

.widget-tab ul {
margin:0px;
padding:0px 20px 0px 20px;
}
.widget-tab ul li {
list-style:none;
border-bottom:1px solid #d6dde0;
padding-top:10px;
padding-bottom:10px;
font-size:13px;
}
.widget-tab ul li:last-child {
border-bottom:none;
}
.widget-tab ul li a {
text-decoration:none;
color:#3e4346;
}
.widget-tab ul li a small {
color:#8b959c;
font-size:9px;
text-transform:uppercase;
font-family:Verdana, Arial, Helvetica, sans-serif;
position:relative;
left:4px;
top:0px;
}
.tab-content ul li a:hover {
color:#a59c83;
}
.tab-content ul li a:hover small {
color:#baae8e;
}

.active-tab{
background:#FFFFFF url(http://i195.photobucket.com/albums/z105/dantearaujo/tabtopbg.gif) repeat-x scroll left top !important;
border-color:#CFCFCF #CFCFCF #FFFFFF #CFCFCF !important;
border-style:solid !important;
border-width:1px 1px 2px !important;
color:#282E32 !important;

}

ul.tab-wrapper {
margin:0px; padding:0px;
margin-top:5px;
margin-bottom:6px;
}
ul.tab-wrapper li {
-webkit-border-radius-topleft:5px;
-webkit-border-radius-topright:5px;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
background:#191919 url(http://i195.photobucket.com/albums/z105/dantearaujo/tabinactivebg.gif) repeat-x scroll left top;
border:1px solid #464C54;
color:#FFFFFF;
cursor:pointer;
display:inline;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:9px;
font-weight:bold;
line-height:2em;
list-style-image:none !important;
list-style-position:outside !important;
list-style-type:none !important;
margin-right:1px;
padding:8px 14px;
text-align:center;
text-decoration:none;
text-transform:uppercase;
}

Note - That code sets the fonts, colors etc.. and can be changed.

Step 3. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - More Info)


Step 4 Copy And Paste The Following Code Directly Above / Before





You must now set up this final section of code to suit your blog.

Note 1.  sidebarname='sidebar1'<--With all the custom templates for blogger many of the templates use different names to define the sidebar.This must be set to the name used in your template.Here is how to find the name of your sidebar : In your dashboard click 'Design' > 'Edit Html' > Now search for the following :


Below this you will see something similar to this :

id='sidebar1' preferred='yes'>

This example tells you the sidebar name is simply sidebar1 if this is the case in your template your ready to go and don't need to change anything.But it may be different on in your template, in my template it's called topsidebar.If it's different in your template replace sidebar1 with the name.

OK you now have a tabbed sidebar section that will be at the top of your sidebar with three gadgets.The section uses the top three gadgets currently in your sidebar so you can drag and drop the gadgets you want displayed into place.

Move The Tabs Section Down Your Sidebar And Add More Tabs

As i said at the start of the post you can have the tabbed section start anywhere in your sidebar and you can have more than 3 gadgets.The set up for this is straight forward but it's quiet hard to explain.In the last section of code you added in Step 4 there are two more settings Highlighted and changing these settings will determine  were the Tabbed section starts and how many gadgets are included.

starttab=0 <--This sets were the tabbed section will start.If you leave it at 0 the tabbed section will start at the very top of your sidebar, if you change it to 1 there will be 1 regular gadget then the tabbed section then the rest of your gadgets and so on.

endtab=2 <--This sets were the tabbed section ends or how many gadgets will be in the tabbed section.If you change the starttab to 2 you must also add 2 to this and make it 4 and so on.If you have the starttab=1 and endtab=4 you will have 5 gadgets in the section.

Note - The width of your sidebar will restrict how many gadgets you can add to the tabbed section also you must keep the titles of the gadgets short so the will fit.You must give the gadgets in the Tabbed section a Title.

OK i have already added this to 5 blogs and I'm confused just telling you guys how it's done hehe.Take your time and you will figure it out and it's worth the effort.If you simply cant figure out the settings just drop a comment below with were you want the sidebar to start and how many gadgets you want displayed and i will let you know what to change.

That's your tabbed sidebar section for Blogger, make sure to check out more of the awesome Gadgets and Design tips we have for your blog.

Drop your comments, views and questions below !

Libellés : , ,

0 commentaires:

Enregistrer un commentaire

Abonnement Publier les commentaires [Atom]

<< Accueil