In this post, We will see you how to add default Author Name, Post Date, Labels and Comments with some little icons to the left of each other.This hack will perfectly match your blog design.When there are no comments posted,the comment link says 'Be the First to comment!' and when there is just one comment it says '1 comment so far'. This is a nice hack that will make your blog look beautiful and professional.I have kept the installation of this hack extremely easy.You just have to copy and paste the code.Now let's start to applying this hack.
(Note - For the purpose of preview I was added this hack,Now I have removed it.You can see the preview below in image)
(Note - For the purpose of preview I was added this hack,Now I have removed it.You can see the preview below in image)
How To Apply This Hack To Your Blog?
- Go to Blogger Dashboard > Design > Edit HTML.
- Backup/Download your template.
- Tick expand widget templates check box.
- Now search for <div class='post-header-line-1'>
- Add below code just above <div class='post-header-line-1'>
( Note - If you can't find above code then find <div class='post-header'> )
<font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvjUkAoz31Ep3Mhu4QslUdR6BV0n69AlZRts0hKy8fsFjR5ZqF4T6fmCqwVTXuM-T73lc40yzK33zkBU_XTitYO9Ou7m-91XnlZCKU0rXC_2eYXTEzY3z5Wkh8HgIxgpYBHvUPoz9D2ixY/s1600/author.gif) no-repeat scroll top left;padding-left:25px;font-size:11px;'><data:post.author/></font> | <font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRo8PUWRqLAbsuT-xyiiHMv2x6jCY2q2HWQ7IOYu3nfcDRCoTcSVskzyO8AVX07TadKW7JPWTsho-CEL9jZnw7fDWYrK8eRhYKeN58SITB-v_4ccGaCe1vvu9UJlavTohALwpYcG0wzQM8/s1600/clock_icon.gif) no-repeat scroll top left;padding-left:25px;font-size:11px;'><data:post.timestamp/></font> | <font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsnVpp_9xiUe8rDv1Iq3T2kpv4LcT0ze12-TvZGX-JwnqYdhWeB2Dw9UdjfSXz4EpMqXnDHe1LZ99-lPG7PfZ83T1egDmTWJLnhb_duCGLjL4nlDD-YCKM9xrAMJxR6g6e5FSGAQIQYiaq/s1600/tag+icon.gif) no-repeat scroll top left;padding-left:25px;font-size:11px;'><b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url + "?max-results=8"' rel='tag'><data:label.name/></a>
<b:if cond='data:label.isLast != "true"'>|</b:if>
</b:loop>
</b:if></font>
<span class='post-comment-link' style='Float:right;'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwNYbnmh6xu642mf7Hi90voFJTT95ffzrPzhxQFA-gtcqVGo5kLQ4OXxUxiYfogHdIF33Vfj_Tcqy5q-6tFDfUjBSEnDCFKfEZhYdl2FG7gC_B6KqNCA1W7AA0fbLCXbbHSUns6vs96szP/s1600/comment-icon.png) no-repeat;Padding-left:20px;'><b:if cond='data:post.numComments == 0'>Be the first to comment!<b:else/> <b:if cond='data:post.numComments == 1'><data:post.numComments/> Comment so far<b:else/><data:post.numComments/> Comments so far</b:if> </b:if></a>
</b:if>
</b:if>
</span>
Customizations (Optional)
- If you want to change AUTHOR icon then replace the code in RED with your own icon.
- If you want to change DATE CLOCK icon then replace the code in BLUE with your own icon.
- If you want to change TAG icon then replace the code in LIME with your own icon.
- If you want to change COMMENT BUBBLE icon then replace the code in PURPLE with your own icon.
I hope this hack will surely help you to make your blog more beautiful and professional.
If you have any problem about this hack then surely ask me.I will respond you as soon as time allows.
Sir I Dont get Any Output Plzzzzzz Help Me
ReplyDeletegreat post
ReplyDeleteI wanted to remove labels and I have done considering the code.
ReplyDeletehow can i show the date stamp instead of time stamp?????
i think changing to will work....by the way great post Rahul :)
Deletethanks great post
ReplyDeleteHi I am honor of teachonly.com i got some thing new from ur blog thanks for sharing bro keep on
ReplyDeleteNot working on my blog here http://qneblog.blogspot.com
ReplyDeleteplease help!
thanks!!