18 A drop down menu for your labels

If you have a long list of labels in your sidebar, you could be losing valuable space to display other information. A different method of displaying your labels is to use a drop-down menu: this takes up very little space at all, and is useful for helping your readers find the information they need. This post explains how a drop-down menu for your blog labels can be achieved in just a few easy steps.






This hack was originally developed by Ramani of Hackosphere, though for this tutorial I have further simplified the process so there are only two steps required:


  1. First you should make a back-up of your existing template by going to Template>Edit HTML in your Blogger dashboard and clicking the "download full template" link which is near the top of the page. It is always good practise to back-up your template before making any modifications at all, just in case you make a mistake and later need to use your old template again.

  2. Next you will need to find the following line of code in your blog's template:
    <b:widget id='Label1' locked='false' title='Labels' type='Label'/>

    To find this line, you do not need to tick the expand widget templates box. This is the un-expanded tag used to display the label widget in your blog template. Highlight all of this line, and replace this with the following section of code:


    Then save your template and take a look at your new drop-down menu!

Once installed, you can then move the label widget to other areas of your blog in the layouts section of your dashboard, just like any other widget.

I hope this tutorial has been useful to you. Please feel free to leave your comments and suggestions below.

Technorati Tags: | | | | |


18 comments:

February 4, 2009 at 4:28 AM kater said...

thanks for sharing it . it is very easy to understand I will implement it in website design

February 13, 2009 at 8:12 PM
A Doomed Lover said...

I can't see what is in the second box(the code that I should input. please if anyone can see it copy it for me in your comment. please please please I need this

February 14, 2009 at 12:54 PM Alper said...

Thank you, Amanda! Works fine!

Have a nice weekend!

Alper

--
http://www.bulut.de/

February 18, 2009 at 5:12 PM Chicago Ray said...

Beautiful,however it would be astounding if the labels could present themselves in alphabetical order ;>)

February 21, 2009 at 3:55 AM Author 2 said...

thanks for the trick, helps reduce the clutter on my blog.

<3

April 2, 2009 at 6:08 AM Saku said...

Hey Amanda,

How can i add two label categories i.e.,

Online Games:

Arcade
Puzzle
Management
..........
........
........

and

Download Games:

Action
Arcade
Puzzle
Kids
Tycoon
.........
.........

like this i want to add two different label categories online and Download Games...

How can i add?

My blog: http://saku-games.blogspot.com/

I want like this blog:

http://www.gamezlinks.net/

Please help me Amanda, it's Urgent

Thanks in Advance

April 29, 2009 at 1:28 AM Beatriz Macias said...

Thank you so much for this. I am always afraid I am going to do irreparable damage to my blog, but your tutorial was easy and soooo helpful. Thanks again.

May 5, 2009 at 10:29 AM Selly said...

Hey, I can't see the code, it says this:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/1.3.33 Server at bloggerbuster.com Port 80

Can someone copy and paste that code here?

May 25, 2009 at 4:06 AM Mados said...

thanks for you

www.tempobox.blogspot.com

June 5, 2009 at 7:37 AM Emily Cross said...

Amanda, Help.

when i tried to put this code into blogger, i got this message:

Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The element type "b:section" must be terminated by the matching end-tag "".

June 17, 2009 at 7:45 AM Rachel said...

Hi, Amanda --

It looks like the code is gone (there's a message that the service is temporarily unavailable). Can you repost this? I really need this widget!!!!!!!! :)

Thanks

July 1, 2009 at 3:32 AM
Anonymous said...

Hi Amanda,
I got the same error msg as Emily as quoted on top:
We were unable to save your template
Please correct the error below, and submit your template again.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The element type "b:section" must be terminated by the matching end-tag "".
Need your help there. Thanks :)

July 1, 2009 at 4:00 AM Dummy Essentials said...

Hi Emily,
This is for all those who are getting the same error as yours. You get this error because you might be clicking on Expand Widget Templates. Make sure you dont click there and search for the line as Amanda has told, replace it with the piece of code and then this code works fine :) Incase you still face the problem you can get back to me here:
http://dummy-essentials.blogspot.com/
will be glad to help u out.

July 8, 2009 at 4:22 PM Nicole said...

Oh no. I tested this code out not too long ago and worked great. At the time, I didn't think I needed. Well, now I would love to have it and now the "Server Temporarily Unavailable." Bummer.

July 8, 2009 at 4:28 PM Nicole said...

Oh Yay!!! I was able to get it! Thank you very much. Having the pull-down labels really helps clean-up my sidebar.

Thank you,
Nicole

August 25, 2009 at 2:59 AM Arrica Lee said...

Thanks a lot for the tips!

August 31, 2009 at 3:17 AM lowellpendon said...

Thanks for sharing this little tweak. Very helpful.

Got a question, is it really necessary to display 'Labels'? What are the disadvantage of removing 'Labels' in our blogs?

Thanks

Post a Comment