Create Automatic Tabs Menu From Labels Widget

automatic tabs menuYes you heard it right! Thankfully now you can create a tabs menu using blogger's official labels widget. Tab links will be automatically updated and added to your menu whenever you create a new tag/category. This widget is really helpful for those of our readers who wanted an automatic method rather the traditional techy way of drop down menus. I have tried my best to make it worth looking and worth trying. This is again a first time shared post by MBT on automatic Tabs Menu for blogger blogs. Lets see a demo first,

Live Demo

How To create the Navigation Menu?

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Search for this code,

]]></b:skin>

    4.   Just above it paste the following CSS code,

/* MBT Automatic Tabs Menu */

 


.mbt-label-list h2 {
    display: none;
}
.mbt-label-list a {
    color: #333333;
}
.mbt-label-list {
    background: #E1D4C1;
    height: 35px;
border:1px solid #DBC8AD;
-moz-border-radius:6px;
-webkit-border-radius:6px;
box-shadow: 5px 5px 5px #CCCCCC;
    margin: 0 auto;
    padding:0px;
    text-shadow: 0 1px 0 #E1D4C1;
    text-transform: none;
    width: 960px;
}
.mbt-label-list li {
    border-right: 1px solid #666;
    color: #333333;
    float: left;
    font: bold 12px Arial;
    margin: 0 2px 5px 0;
    padding: 0px 14px;
    text-transform: uppercase;
}
.mbt-label-list ul {
    float: left;
    list-style: none outside none;
    margin-bottom: 0;
    margin-left: 10px;
 
    padding: 0;
    width: 920px;
}

This CSS code is responsible for the color and look of your tab links and background.

  • If you wish to change the background color of the menu then edit    #E1D4C1
  • To change link colors change this #333333 . Edit it twice.

5.   Now search for this code,

<div id='content-wrapper'>

If you are using the new blogger designer template then search for this code instead,

<div class='tabs-outer'>

   6.  Just above any of these matching codes paste the following HTML code,

<div class='mbt-label-list'> <b:section class='mbt-label-list' id='mbt-label-list' preferred='yes' showaddelement='no'>
<b:widget id='Label1' locked='true' title='Labels' type='Label'/>
</b:section></div>
<div class='clear'>&#160;</div>

This code will create a labels widget in your PageElements page.

   7.   Save your widget and you are all done!

Visit your page elements page and open the label widget at top,

labels widget

Choose the following settings:

  1. Choose All labels only if your number of labels are less than 10. Else choose selected labels to decide which label links you wish to display in tabs.
  2. Set sorting to alphabetically or by frequency which ever you like. Choosing by frequency will display your most used label tabs first in the menu and the least used labels last in the menu.
  3. Choose Display as list
  4. You can decide whether to show or hide the label counts. So  uncheck "Show number of posts per label" if you don't want label count to be displayed next to each tab.
  5. Hit save and bingo you are all set!

tabs menu settings

Visit your blogs to see this brilliant new trick working just perfectly as shown in the demo. Please feel free to ask any related questions. Will try my best to reply as soon as possible. Kindly share it with your friends if you think this new trick proved useful and unique for most of you. God bless pals! :)

Related Posts:

  • Add AdSense right After <!--More--> TagThis is a great tutorial which will multiply your current click through rate and add a new boom to your over all Adsense earning. With a big repository of plugins for Wordpress blogs like Quick Adsense, WP users never need to… Read More
  • Customize Blogger Contact Form! Part 1 So most of you are aware of the recent gadget added to blogger widget directory and that is a small contact form with two input fields for name and Email and a text area for writing the message. We use a complex PHP Form fo… Read More
  • Download counter : A Plugin for blogs!This is the first plugin of its kind created for websites which share downloadable resources. The plugin amazingly works with all major blogging platforms like wordpress and blogger blogs. It can even be used in static Sites … Read More
  • Installing Zemanta on Blogger - A New Way to create Blog Posts!Creating quality content is a major concern for bloggers. It is one thing to establish a good-looking and well-optimized website which is SEO friendly, and quite another to update it with fresh, regular content which is of hi… Read More
  • Automatic Numbering for Blogger Threaded CommentsToday's tutorial will take blogger comment system one step more closer to wordpress commenting engine. I was amazed today when I discovered that W3 has already introduced an excellent way of automatically numbering lists in a… Read More