Display post author, date, labels and comments with icons below post titles

Errorlogger
0
In this tutorial, you will see how to add more info in the Blogger posts like blog author's name, a time stamp for published posts, labels and comment count links. The comment links will display the 'Be the first to comment!' text in posts with no comments and once we get a comment, it will show '1 comment so far'. On the left side, it will show the author's name, a clock icon with date when posts have been published and finally, the post labels.



labels below blogger posts


How to Add Author, Date, Labels and Comment Bubbles to Blogger

Step 1. From the Blogger Dashboard > go to "Template" and press the "Edit HTML" button



Step 2. Click inside the code area and press the CTRL + F keys to open the blogger' search box




Step 3. Type or paste the below code inside the search box and hit Enter to find it:

<div class='post-header-line-1'>
Note: If you can't find the code above, look for this one:
<div class='post-header'>
Step 4. After this code add the following code:
<div style="margin: 5px 0; border-bottom: 1px solid #F2F2F2;padding: 5px;"><font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhltEbsulVwVsP4zfkiLp2dqzy3VQFaChptuJiILEBOQqkQM4PXZK3vAJaf8llVnT4M60C7deVlVG6fuPHafzMDi59b3lBdAaEUTYGpk8K787BFYcfaE4kQYSkvRRu-y3XXrcdm6Dm1QWlB/s1600/author.png) 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/AVvXsEglOuPFLBs19_m9nISuR1zumP037xDHyXRPp57pCWzCFmgTYOpZDW4ZQh45-CfrPvoYBun33piy4uKI1PhEMTQkOTLSWcIzciKn-jZkLzYVIFEfqqeEmR7p6xuFBz3w7IHD-6x8RlQu7Qb2/s1600/clock.png) 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/AVvXsEi8jGjAnaAOsJuJD1fCizWrgfkNkTLp4Wfsz1VOYySecXnh3TQEc5fszFa8tNWlKIBXSsGZyaOgwOaOgnswyscRXeavLr7UrPMOO1CgunPE7o1Q8keOpDjkQ5WyXmBPalC_cVDiFRdHEHKb/s1600/tag.png) 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 + &quot;?max-results=8&quot;' rel='tag'><data:label.name/></a>
<b:if cond='data:label.isLast != &quot;true&quot;'>|</b:if>
</b:loop>
</b:if></font>
    <span class='post-comment-link' style='Float:right;'>
        <b:if cond='data:blog.pageType != &quot;item&quot;'>
          <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/AVvXsEhUiDnf3SDvaOyVG7tRLShxAlzYAXt9JDAg0_ZN07turhvcVaskv9MYMLWrpismcBYC3TC9VsanS1hn-xiingYKmfycVE8oBXQeqPH7_G-hzgIwGJq_a8ZQ36cuovYeB5j46LpsUzjwSU44/s1600/comment.png) no-repeat;padding-left:20px;font-size:11px;'><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></div>

How to customize:


To change the icons, replace the URLs in blue from above with the image URLs:

- First one is the icon for the Author
- Second one is the Clock icon
- The 3rd one is the icon near the Labels
- And the last one is for the comment bubble

Related: How to Add Comment Bubbles to Blogger posts titles


Step 5. Click the "Save template" button and you're done!
Tags

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Accept !) #days=(30)

Our website uses cookies to enhance your experience. Check Now
Accept !