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:
Perfectly Working In My Blog
Thanks
Thanx for dis lovely trick but i cound't use this in my BLOG
thanks a lot, wil give it a try
regaards
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
thanks
wow this is cool!;;)
@christian
I 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,
Why rn't you able to use it, any errors?
so smart... :D
Hi Sai,
Cannot 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"
I have marked the tick-box "expand widget templates"
Even then i am not able to find.
Hey Anand,
If 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?
Yes 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.
Okay, Good Suggession. Thank you. :)
Is 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.
Instead of image or text can I put a widget there? Most likely yes, can someone show me how?
@Anony
Well 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.
Yes 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 :)
hey 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(
help pls
Wow ... nice tips... i lke.. good job and thnks..
Allowed HTML tags: <b>, <i> and <a>
Join and share your views with other bloggers at BloggerStop Community
Comment Like This! and Optimize your blog...
SPAMMER OF THE MONTH: www[.]MensItaly[.]com