When publishing with Blogger, we can categorize our posts using “Labels”. Published posts which have labels attached produce a link to each label in the post-footer section which links to a page displaying all posts categorized under this label. We can also add a “Labels” widget which generates a list of all labels currently in use linking to posts in the appropriate category.
Aside from the basic categorization of blog posts, there are some other useful functions we can add to our blogs when using Blogger labels. In this post, I’ll explain some simple yet useful customizations which could be useful to enhance the organization and display of your Blogger posts.
“Tag Clouds” are a popular design feature often used in blogs. This enables you to display links to your labels (categories) in a cloud style, where prominent labels feature more prominently and offer readers an understanding of your blog’s subject matter.
More recently, Blogger users have been able to add a flash-based, animated tag cloud to their layout which is based on the popular WP Cumulus plugin by Roy Tanck. This stylish version can be included in a regular Labels widget to parse and display labels automatically.
Further reading for label clouds:
By default, label pages display 25 posts assigned to that particular category (if there are enough posts filed under that label).
For those who write long posts or use many images, this can result in long page-load times for label-based blog pages.
Here is an easy way to limit the number of posts displayed on label pages:
data:label.url
and replace this with the following instead:
data:label.url + "?max-results=n"
where n is the number of posts you would like to display on labels pages. This can be any number between 1 and 100.
This customization offers more control over the number of posts displayed, and can help ensure your Blogger design looks and feels the way you want it to.
If you have a long list of labels in use, a simple labels widget would appear as a big long list.
To free up some space in your sidebar, you may want to consider using a drop-down menu instead.
This is another simple customization for your blog which can be achieved in just a few short steps:
<b:widget id='Label1' locked='false' title='Labels' type='Label'/>
<b:widget id=’Label1′ locked=’false’ title=’Labels’ type=’Label’>
<b:includable id=’main’>
<b:if cond=’data:title’>
<h2><data:title/></h2>
</b:if>
<div class=’widget-content’><br />
<select onchange=’location=this.options[this.selectedIndex].value;’>
<option>Select a label</option>
<b:loop values=’data:labels’ var=’label’>
<option expr:value=’data:label.url’><data:label.name/>
(<data:label.count/>)
</option>
</b:loop>
</select><b:include name=’quickedit’/>
</div>
</b:includable>
</b:widget>
Once you have installed this hack, you will see that your label list has been replaced with a simple drop-down menu instead, which readers can use to access label pages with ease.
A lesser known feature of Blogger is that each blog produces label feeds in addition to the regular post and comment feeds.
If a particular category of posts is of interest for your readers, it may be useful to promote certain label feeds or add a recent posts widget to display articles categorized under this label.
Label feeds can be accessed using the following format:
http://your-blog.blogspot.com/feeds/posts/default/-/LabelName
where “your-blog.blogspot.com” should be replaced with your own blog URL, and “LabelName” should be the name of the label you wish to publicize (case sensitive).
If there are spaces between words in your label names, replace these spaces with %20 instead.
For example, the label feed for “Labels Categories and Tags” in my blog, Blogger Buster, is located at the following URL:
http://www.bloggerbuster.com/feeds/posts/default/-/Labels%20Categories%20and%20Tags
Once you have located the URL for your label feed, you could burn this through FeedBurner and offer subscriptions or add as a recent posts widget to filter posts from this category. It is also a useful method of displaying a “sideblog” with Blogger.
In this post, I’ve discussed only the basic methods of manipulating labels in Blogger blogs. There are also advanced techniques which we can use to filter posts depending on their label (ideal for magazine style layouts, side-blogs and similar functions), and also to generate interesting functions for label pages and particular categories of posts.
So in next week’s post, I’ll continue with the theme of Blogger labels by explaining some of the more advanced label-based functions which offer even greater control over your posts and layouts.
Author comments are in a darker gray color for you to easily identify the posts author in the comments
Comments are closed since this post is older than 30 days. However, you can continue this discussion in our popular Blogging Forums
Hello Amanda,
Jut what I needed for the long list of labels
Unfortunately I get an error message when I try to save the Template:
Quote:
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: Open quote is expected for attribute “{1}” associated with an element type “id”.
end Quote
Perhaps you can tell me what I’m doing wrong?
Thanks
Hi Amanda
this is really cool tutorial for Blogspot publisher, it will give a sleek look to blogspot blog which we usually see only on wordpress blogs.
@Jos
change the lable id in this code
make it Lable11 that should solve your problem
@Jos ignore my 1st reply
pleas replace all single quotation marks * ‘ * with double quotations * ” *
and your drop down label list will be working smoothly
Sunil,
Doesn’t work either../…
@Jos
try this code
if this one give you any more error then pleas mail me on sunil@bloggerslab.com
its batter to solve your problem on email rather then series of comments on this informative post
bloody hell i am not allowed to use blockquote here
some one pleas delete my previous comment
@Jos mail me the error you are getting after replacing * ‘ * with * ” *
Wondering if anyone know how to edit the title tags of the “labels” page. Every labels page that is indexed within Google has the name of the blog in the title tags.
I would love to create unique title tags for each labels page for SEO purposes….
1. I added the drop down menu for Labels and it worked fine. Until I realized the post counts were there — Last week I had gone in and deleted the
() line to have a cleaner look. Finally figured out that copying all of your replacement code caused the resurrection. So I went in to delete it again, but it was not there — now you can only see it with “expand widget templates box checked. But now I get a Blogger error(Bx-nnn) trying to preview or save the changes. Actually I can’t even preview when I make no changes in expand mode. HELP!
2. Your instructions say “This time, do not check the “expand widget templates box!”, but by doing that the next time you try to find that new code you need to check show expanded — you might want to warn folks in case they want to reverse the drop-down into a plain list. Although, there is no record of the code that was replaced???
Re: my item 1 in the previous comment — the Bx-nnn error clear up!
I had filled out the ‘report blogger error’ form which may have triggered something on their end (?)
thanks alot………guy