In this Blogger tutorial, you will learn to display icons or any text/image specific for any label/category under the post titles in your blog.
For example, if these are the four main topics/categories of your blog: Music, Dating tips, Finance and Books reviews/Literature then for posts on book reviews you can show this icon below their post-titles:

Similarly for posts on music, finance and dating tips you can show these icons:

Instructions to implement this hack in to your blog:
NOTE 1: If you want to display the same icon below the titles of all your posts irrespective of the labels used, then kindly follow this tutorial.
NOTE 2: You must already have some tags/labels/categories in your blog to use this hack.
For example, if these are the four main topics/categories of your blog: Music, Dating tips, Finance and Books reviews/Literature then for posts on book reviews you can show this icon below their post-titles:
Similarly for posts on music, finance and dating tips you can show these icons:
Instructions to implement this hack in to your blog:
NOTE 1: If you want to display the same icon below the titles of all your posts irrespective of the labels used, then kindly follow this tutorial.
NOTE 2: You must already have some tags/labels/categories in your blog to use this hack.
STEP #1:
Log in to Blogger, go to Layout -> Edit HTML and tick the tick-box "Expand Widget Templates"
STEP #2
Find (CTRL+F) this code in the template:
<div class='post-header-line-1'/>and immediately BELOW/AFTER it, paste this code:
<!--LABEL-SPC-ICON-STARTS-->
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.name == "YOUR_LABEL_#1"'>
TEXT OR LINK TO IMAGE COMES HERE</b:if>
</b:loop>
<!--LABEL-SPC-ICON-STOPS-http://bloggerstop.net-->
If you want to display these icons for four labels (as in the above example), then use this code:
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.name == "YOUR_LABEL_#1"'>
TEXT OR LINK TO IMAGE COMES HERE</b:if>
<b:if cond='data:label.name == "YOUR_LABEL_#2"'>
TEXT OR LINK TO IMAGE COMES HERE</b:if>
<b:if cond='data:label.name == "YOUR_LABEL_#3"'>
TEXT OR LINK TO IMAGE COMES HERE</b:if>
<b:if cond='data:label.name == "YOUR_LABEL_#4"'>
TEXT OR LINK TO IMAGE COMES HERE</b:if>
</b:loop>
Replace the code in RED with the exact names of your labels/categories (including space " " between two words). And replace the text in GREEN with the link to the icon you want to use. For ex.: To use the books icon displayed above, replace that text in green with this code:
<img src="http://i49.tinypic.com/2elukh4.jpg" alt="Book Reviews"/>
Finally save the template.
This post is based on the request by Christian from World Of Football
24 comments
Write commentsPerfectly Working In My Blog
ReplyThanks
Thanx for dis lovely trick but i cound't use this in my BLOG
Replythanks a lot, wil give it a try
Replyregaards
christian
tried it and it works, but is there a way to place them at the beginning of post title? for eg, that image followed by post title
Replywow this is cool!;;)
Reply@christian
ReplyI just visited your blog, and I think you already got the answer.
Anyways for otehr readers....to display the icons above the POST-TITLES, in STEP #2, instead of pasting the new code AFTER that line, paste it BEFORE the code:
<div class='post-header-line-1'/>
@Kashif,
ReplyWhy rn't you able to use it, any errors?
so smart... :D
ReplyHi Sai,
ReplyCannot Find <div class='post-header-line-1'/>
in my blog.
What to do?
Hi Anand, make sure you have marked the tick-box "expand widget templates"
ReplyI have marked the tick-box "expand widget templates"
ReplyEven then i am not able to find.
Hey Anand,
ReplyIf that code is not there in your template, there must be some other alternative code as this is necessary to display post-titles in blogs. Anyways, if you are unable to find it, then search for this one:
>data:post.body/<
and then immediately ABOVE/BEFORE it, paste that code(from STEP #2).
This is a great information. One question :-/ (I am non-tech :(). Will this icon work, when I have comment number image behind post title?
ReplyYes Kanchan it'll work, but it'll be better if you display them on opp. sides, for ex: comments bubble on right and these icons on left.
ReplyOkay, Good Suggession. Thank you. :)
ReplyIs there any trick for attractive archives?
I don't know, if you find this attractive or not, but a different type of archive widget is a calendar blogger archive widget.
ReplyInstead of image or text can I put a widget there? Most likely yes, can someone show me how?
Reply@Anony
ReplyWell if you are talking about retweet/facebook buttons, then here are the tutorials:
Add Retweet/Tweet It buttons to Blogger
Add facebook buttons to Blogger blogs
You allow me to create an article on how to implement this hack in Portuguese. I promise to give credit to your blog, mine is the noticiaeblog.com.
ReplyYes you are allowed, but it should not look a copy-pasted translated work and do keep the credits. Glad that you want to share the work :)
Replyhey can u please help me fast ...i want make my page some tab like urs when we click * Optimize Your Blog* there is more sub page right...how i do that for my blog ...please help ~x( ~x( ~x( ~x( ~x( ~x(
Replyhelp pls
ReplyWow ... nice tips... i lke.. good job and thnks..
Replyit works!!! thanks, mate!
ReplyComments are moderated on this blog
Allowed HTML tags: <b>, <i> and <a>
Comment Like This! and Optimize your blog EmoticonEmoticon