Search This Blog

Loading...

Tuesday, August 07, 2007

Add Label (category or tag) List to blog using old classic Blogger template

If you are using an old classic blogger template, you will have the new Label (category of tag) feature in the New Blogger, but you will not be able to add a Label List in the Sidebar. The labels will only appear at the bottom of the post. If you want to have a Label List in the sidebar like those using the New Blogger template, you will have to add it manually.

For example, you will find the label "support us" at the bottom of the post How you can help Blogger Tips and Tricks (click BACK button to get back to this page or right-click and select "open in new tab):

Google Blogger: labels at bottom of post

In this case, you see only one label, but it could have been more if you had wanted to add more when you publish or edit your post. You just add more labels, separated by commas.

For example, at the bottom of the post Convert your eBooks into PDF files and sell them (click BACK button to get back to this page or right-click and select "open in new tab), you will see 2 labels at the bottom of the post:

New Blogger: many labels at bottom of old classic Blogger template

Supposed I want a Label (category or tag) list in the sidebar of a blog using the old classic template. What I need to do is to click on one of the labels at the bottom of the post (or right-click and select "copy link location (Firefox) or "copy shortcut" (Internet Explorer and Flock) to copy URL into clipboard) and you will be taken to the page where all the posts having that label will be displayed. Copy the URL from the address bar at the top of the browser.

Books for Bloggers

Then go into your template editor (use Add content via the template) as a guide to add this in a suitable position in the classic template:

<h2 class="sidebar-title">Labels (Categories or tags)</h2>
<ul>
<li><a href="URL of Label page">Name or label</a></li>
</ul>


Of course if you have more than one labels, you will have to do the above more than once (but only once for each individual label). If you have many labels, which is more likely, the HTML you add may be something like this:

<h2 class="sidebar-title">Labels (Categories or tags)</h2>
<ul>
<li><a href="URL of Label 1 page">Name of Label 1</a></li>
<li><a href="URL of Label 2 page">Name of Label 2</a></li>
<li><a href="URL of Label 3 page">name of Label 3</a></li>
<li><a href="URL of Label 2 page">Name of Label 4</a></li>
</ul>

54 comments:

  1. hi Peter

    i have a question and i can't find the answer anywhere else.How can i show in the main page with a link all my posts of the current month if i put to show only 5 posts in the main page by deafult?

    i am looking something like this:

    "see all the posts of the current month" ...and then to open only the current month posts not the others months like default archive code.

    i am using classic blogger template.


    thanks

    ReplyDelete
  2. Hi Dok,

    To the best of my knowledge, you can't do what you asked. The nearest thing you can do is to put the archive lists right at the top of the main page. However, this archive lists will appear in all your pages. You can also make it so that it appear only in the main or archives but not the individual post page. That is the best I think you can do. Have a look at Test Classic Template and see if you are interested in something like that (the archive lists is right below the Header and only contain links the August and July archives as these are the only months that have posts. If you have more posts in more months, the list will be longer. If you want that, then you can comment again and I can show you how to do it.

    Peter (Blog*Star)
    How you can help Blogger Tips and Tricks
    (no one should feel obligated. Everthing completely voluntary)

    ReplyDelete
  3. thank you Peter fo your help.
    you helping me a lot.

    ReplyDelete
  4. Thank you for the information that your blog has, I benefited a lot for it.
    Meyyale
    www.meyyalesworld.blogspot.com
    www.meyyalespictures.blogspot.com

    ReplyDelete
  5. nice post...I'm looking for tutorial on how to make drop-down menu for labels in classic blogger..? can you help to solve this problem?

    ReplyDelete
  6. Hi Cybersix,

    Please refer to drop-down menu for New Blogger label list.

    An alternative is Scroll box for long New Blogger Label List, however, this is not automatic unlike the one above and involve manual work.

    Peter (Blog*Star)
    The easiest way to earn something for your blogging efforts

    ReplyDelete
  7. hi! thank you for that tip. But I have another question. Is it possible to put the labels AFTER the post to BEFORE the post, like after the title? (I am using classic blogger template)

    ReplyDelete
  8. Hi Ninin,

    Yes, that is possible for both old classic template as well as New Blogger template, as what is involved is not the template, but what is in the post (or if you wish, in the post editor). Just put the HTML tags at the very top of the post rather than at the bottom.

    Peter Blog*Star
    The easiest way to earn something for your blogging efforts

    ReplyDelete
  9. hi! thank you for replying! I still don't get it though. Where do I find the html tag in my post? I tried to edit my post and looked for the html code for the labels but could not find it. I only have the space at the bottom of the form where I can enter the labels for my post.

    Thank you in advance!

    ReplyDelete
  10. Hi Ninin,

    I am afraid I spoke (or rather wrote) too fast, without testing. I am very used to the old classic Blogger template, that is before they upgraded to Blogger Beta (now New Blogger), and although you can still use old classic template, there are some things added such as labels. I have never looked at a classic template after the upgrade, and though it would be easy. I have managed to do it for New Blogger template as you can see in Blogger Help Pages which uses New Blogger Minima 3 column template and the instructions can be found at Labels below posts titles.

    If I can find the time, I will test it out with a standard old classic Blogger template and see if I could do it.

    But I suggest you migrate to New Blogger templates as they are so much better and more convenient. I have tested and used many third party New Blogger templates and have found them very satisfactory. If you are interested, have a look at:

    New Blogger 3 column templates (almost all).

    Peter Blog*Star
    Successes with Kontera ContentLink

    ReplyDelete
  11. With the Old Classic template, when we add the labels, will it show the label count or is there a way to do this?

    ReplyDelete
  12. Hi twinklemom,

    To answer your question, I have to do a test blog with old classic Blogger template at Eye Care Guide.

    For further explanation, refer to Label counts for old classic Blogger template blog.

    Now if you are referring to putting "Label List" manually using the method outlined in this post, a test is not even necessary as the answer will be a definite NO, as the method uses hyperlinks which will have no way to know how many posts have been tagged with a particular label, and if you want it to display, you will have to count the number yourself and somehow add that number beside the hyperlink, and worst, each time you tag a new post with an existing label, you will have to manually edit the number.

    I hope this answer your question.

    Peter Blog*Star
    Tips and Tricks for Blogger or "Son of Blogger Tips and Tricks"
    slotted for conversion to custom domain

    ReplyDelete
  13. thanks very much for the tip! It helped!

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. Hi RingCentral,

    Sorry for the slow response, but pleas refer to Why your comments and emails are not getting prompt response: Apologies.

    Regarding your question, I am not too clear about what you want when you say you want label or labels in the post title. Is it 1 label or more than 1 label, and why?

    Peter Blog*Star
    Blogger Dough
    (Blogging helped my put 2 sons through college on my pension and if not for blogging, I would have been in financial difficulties. We want to help you do the same)

    ReplyDelete
  16. Hmmm, I wish there was some way of doing it automatically. Its pretty annoying to have to do it manually and republish to FTP every time I make a new tag.

    ReplyDelete
  17. Hi Peter

    Test Classic Template is doing exactly what I'm trying to achieve - namely a list of all the previous posts. How do you do it? The help on Blogger isn't that helpful

    Thanks

    ReplyDelete
  18. Hi Trevor,

    Sorry don't understand your question. What test classic template?


    Peter Chen Blog*Star
    Dream Driven Life(TM)

    ReplyDelete
  19. The one linked to in your reply to dok. However, I've now found out how to do what I was trying to do. Thanks

    ReplyDelete
  20. Hi Scott,

    I see you are using FTP. For you, you have no choice but to use old classic template and thus you will have to do it manually. No choice.

    Peter ChenBlog*Star
    How to get free traffic to your blog

    ReplyDelete
  21. Hallo! I have just written a message about this... And it did work!
    well, the sad part is that the counter wont appear... anyways, until I cant learn how to create templates for the blogger, this will help a lot!!! Thank you so much!!!!

    ReplyDelete
  22. this was so helpful! thanks for posting this up. I couldn't find it anywhere else.

    ReplyDelete
  23. hi again. I'm in NYC. Thanks

    ReplyDelete
  24. Hi Peter!
    Thank-you so much!!^^
    After following your add label guide, I've finally added a label to my blog in classic template. ^^

    My blog: gonewithout-asound.blogspot.com

    ReplyDelete
  25. Hi Peter
    Thanks for posting this in your blog.^^
    Now I finally have a label at my sidebar. ^^

    My blog:gonewithout-asound.blogspot.com

    ReplyDelete
  26. Hi Peter,

    I have been looking on the net for an answer to my problem and this thread seems to be the closest I can get to...

    I am using the old blogger template... I managed to put a link to my labelled posts on the sidebar... Unfortunately the link will open and show only the number of posts shown by default on the main page... In my case only 10 posts...

    Is there a way I can have the link show all posts with the same label regardless of the number of posts set on the main page? Sometimes I have 30 or more posts with the same label and would like to be able to show them!

    I hope you can help...

    Thanks in advance

    ReplyDelete
  27. Hello Peter

    I have the same question as the previous poster, "Barrio". Any ideas?

    Also, in my template code that creates the list, I added the code target="blank" so the search on the label would appear in a new tab window. But it won't read it. It works okay to just open a regular page, but not for a search. Am I using the wrong code?


    Thanks for any help you can suggest.

    ReplyDelete
  28. First the easy one: ...target="blank"

    For hyperlink to open in new tab/window, you have to add target="new" or target="_blank"

    Now for the hard part. I checked one of the labels - 3 column templates which have 14 posts. I clicked on the label and counted exactly 14 which is more than 10. However, this blog uses the New Blogger template.

    I don't have a regular blog using old classic Blogger template so I do not know exactly what will be displayed using standard hyperlinks to display "label list" unless I take time to test.
    Now do I understand the 2 of you that in your blog, the self-created hyperlink for label displayed maximum 10 posts only even though that label have more than 10?

    ReplyDelete
  29. "...the self-created hyperlink for label displayed maximum 10 posts only even though that label have more than 10?"

    Peter, that is correct. Some of my labels have up to 40 or 50 posts, and currently I have not found any way to display them unless someone deliberately searches for them, or if I create a detailed list post by post (tedious).

    ReplyDelete
  30. Is there a "Next 10 posts" link or something at the bottom of that page showing the 10 posts?

    ReplyDelete
  31. No, but I wish there was. I don't know how to program the code to do it for me, either. :-/

    ReplyDelete
  32. Peter, thank you for your reply! I've just now realized that it's also the original label link at the bottom of each post that doesn't properly work, not only my self created link... I've now set the number of posts to be shown on the main page to 1 post only... When I click on the label at the end of each post, a new page will open, but only a maximum of 20 posts bearing that particular label will be shown...

    Is it normal?

    ReplyDelete
  33. Is it possible to add Related Post in classic blogger template?

    ReplyDelete
  34. I am afraid I haven't tried that

    ReplyDelete
  35. Hi Peter, thanks for the feedback. I had another question. I'm using classic template, can I put OLDER and NEWER link in below each post?

    ReplyDelete
  36. Refer to Newer and older posts links and Previous and next linksFor dok's quiry, it is possible to use conditional tags.

    ReplyDelete
  37. I found a different and faster way to make a label list for the classic Blogger.

    How i did it:

    Copy your template, paste it into Notepad and save it. (A back up for if anything goes wrong.)
    Go to Posting then Edit Posts: on the left you will see a box with all your labels listed. Right click - view source. Then press ctrl-f and enter the word "labels", that will bring you right to the HTML for this box with all labels listed. Copy and paste this into your template under the html for your side bar (for example where you have " htmlbracket:MainOrArchivePage:end htmlbracket" .) As im quite sure this wont update itself, you will have to copy paste this html after you post a new blog with a label. Luckily its fast and easy once youve done it before and know where everything is. I then edited the title so that it says something other than 'labels'. here's my site adrs so you can see how it looks: www.enchantedsun.blogspot.com
    Its extra nice because doing it this way puts your labels in alphabetical order as well as the amount of posts for that label. ^^

    ~EnchantedSun

    ReplyDelete
  38. please ignore my last comment. discovered some bugs with my idea. very stupid of me to not have realized a few problems regarding my idea. i shall take a look at it and perhaps repost my comment.
    sorry,

    ~EnchantedSun

    ReplyDelete
  39. How i did it (with bug fixes):


    Copy your template, paste it into Notepad and save it. (A back up for
    if anything goes wrong.)
    Go to Posting then Edit Posts: on the left you will see a box with all
    your labels listed. Right click - view source. Then press ctrl-f and
    enter the word "labels", that will bring you right to the HTML for
    this box with all labels listed. Copy and paste this into your
    template under the html for your side bar (for example where you have
    " htmlbracket:MainOrArchivePage:endhtmlbracket" .)
    You will need to edit the "a href="s to "yourblogadrs/
    search/label/yourlabeltitle" for each of your labels.
    Note: use %20 instead of any spaces in the label titles.

    thus you might want to add all the labels you think you will use a
    head of time by going to Posting > Edit Posts > Label actions (down
    arrow) > new label
    before doing this.
    Or every time you add a label just add
    the html of one more label (rather than copy paste the whole source then having to re-edit all adrses).

    Using my idea my not be ideal: but still saves time in comparison to writing all the html
    for all the labels manually - as with this idea you just have to edit
    the adrses and nothing else. Which is easy enough if you just copy paste "yoursiteadrs/search/label/" and then you just have to type the labeltitle + any needed "%20"s.

    You can also edit the title so that it says something
    other than 'labels'.

    here's my site adrs so you can see how it looks:
    www.enchantedsun.blogspot.com (List of films posted thus far)

    Its extra nice because doing it this way puts your labels in
    alphabetical order. ^^

    ~EnchantedSun

    ReplyDelete
  40. Hi Peter,

    After rampaging through the net for a couple of hours, I'm ready to tear my hair out.

    I'm currently using the classic blogger with a customized skin from Blogskins. However, I would like to add a label cloud so people can just click on it and it'll show all posts related to that label.
    I was just wondering if there is a specific code I can input ?

    Thanks

    ReplyDelete
  41. If you don't mind using del.icio.us and doing a teeny weeny bit of work each time you add a new label, refer to Blogger categories - easy method which was originally published before this Blogger Beta now called New Blogger xml was introduced.

    I vaguely remembered that there may be another way. Do give me a nudge if the above is not acceptable for you.

    ReplyDelete
  42. Dear Sir,
    i m new 2 this Blogging.
    m able 2 make Labels,But the Contents i put into labels also appear on the Front page as well as inside the Labels:(
    I want them only inside the Labels as they are in your Blogs.
    Plzz Help.
    Thnxx 4 this wondefull Blog Guide:)

    ReplyDelete
  43. If I understand you correctly, you want any posts that appear in your label page not to appear in the home (main) page. I think the first thing you need to do is to read Homepage, archive pages and permalinks (got to check to see if label pages was explained in that post or not) to understand the various pages of a blog. You should also know that it is possible for you to set the number of posts (default is 7) that appears in the homepage and that the most recent pages and not the old posts will appear in the home page.

    To get back to your concerns, the only way to get what you want is not to label the most recent posts (which will appear in the homepage) with any lable.

    If this is not clear, ask again.

    ReplyDelete
  44. hi i donot understand where to put the code you posted i saw your post on where we put it i didnt understand is it beore fotter wrapper or inront of outer wrapper




    srorry or bad english i am egyptian

    ReplyDelete
  45. hi i donot understand where to put the code you posted i saw your post on where we put it i didnt understand is it beore fotter wrapper or inront of outer wrapper




    srorry or bad english i am egyptian

    ReplyDelete
  46. Please note that this post is for those using the old classic Blogger template as there are easier ways to do categories (Blogger call them labels) for the New Blogger xml template.

    ReplyDelete
  47. Hello Mr Peter, thank you very much for all your simple and great explanation on how to do this and that. I have learned how to do the Label @ my blogspot tresadesigns.blogspot.com and now i am about to learn how to do the Label Cloud and hope it does well he he .. thanks again, Cheers

    ReplyDelete
  48. I need help. I was trying out the new updated blogger styles and I accidentally deleted my old template. Now I almost have everything the way it use to be, however, I just noticed that there is no "previous page-Old post" option at the very end of my blog to guide to the previous post. I do have archiving, but that's not enough, i would like to have the "previous post" option as well. Can someone Please help me. I have a classic template. Please check out my blog and see for yourself. if you have the classic with the "previous post option" could you please C&P your template so i can somehow extract the code myself? ty.

    ReplyDelete
  49. I have a post on that that for old classic template but cannot find it yt.

    ReplyDelete
  50. thnx boos ..........watch my blog
    http://www.mrsunni.co.cc/

    and sugasion me

    how to make more atractive .
    im a new in this fild.

    ReplyDelete
  51. Hi, thank you for your informative post.

    But I was wondering if you help me with something? How do I add the labels, say, under the profile?

    Thank you.

    ReplyDelete
  52. Hello, the drop down menu works very well on my blog. But apparently, when I click on one of the option, it doesn't direct on the link. Can you help me?

    ReplyDelete
  53. Des Legit, you can't add label automatically but if you know a bit of HTML, you can do it manually.

    ReplyDelete


Find topics by using the Google custom search box above which can search multiple blogs, or the SEARCH BLOG in the left corner of navbar. You can also find topics in the Label List and Categrories in the right sidebar.

For more information and special deals related to any of the issues on this page, place your cursor over the double-underlined links. All information supplied by Kontera.com.

Disclaimer: This blog has no relation with Wiley Publications