Wednesday, June 27, 2012

How to Add a Comments Counter Button to Blogger Blogspot

In this Blogger tutorial (Blogspot tutorial) you will learn how to add a comments counter button to Blogger (Blogspot) to show off the number of comments each of your posts has received.

A comment counter button (bubble) will have the effect of encouraging visitors to comment on your Blogger blog and also help to highlight the credibility of your articles.


Installing this Blogger hack to add a comment counter button only takes a few minutes. The changes needed to add the comment bubble to Blogger while not difficult do involve adding a small snippet of code to your Blogger template in two places. For this reason I strongly urge you to back up your Blogger template before attempting this blogger hack.


Blogger Tutorial Difficulty - easy to medium

How to Add a Comments Counter Bubble to Blogger
A Step-by-Step Walkthrough
The following steps will insert a fully clickable comments counter button on the same line as the post title in Blogger. The comments counter is right aligned by default.

  1. Log in to Blogger and the blog you wish to apply these changes to

  2. Select Design > Edit HTML

  3. Click on Download Full Template to back up your template before you make any changes

  4. Check the Expand Widget Templates box

  5. In the CSS Styling section of your Blogger template and just before the ]]></b:skin>

    .comments-button {
    width : 48px;
    height : 48px;
    background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTCIn7W0Qt8kwCV9PGbumEqCBtVinyVseXtKPwBLkSz-575192hzk6_Z6kr8jV2nJtKlAhXRfaUVQgKcm6fJZQx1orN7WB9vrVDepyob18cs4eWV6WoCosNT3oviuJ2BUoqs-aYxHjWYEo/s200/comment-counter-bubble.png) no-repeat;
    float : right;
    font-size : 18px;
    margin-top : -15px;
    margin-right : 2px;
    text-align : center;
    padding-top:10px;
    }

  6. Now find the following block of code using CTRL key + F

    <b:includable id='post' var='post'>
    <div class='post hentry uncustomized-post-template'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
    <h3 class='post-title entry-title'>
    <b:if cond='data:post.link'>
    <a expr:href='data:post.link'><data:post.title/></a>

  7. Copy this code block:

    <b:if cond='data:post.allowComments'>
    <a class='comments-button' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:post.numComments/></a>
    </b:if>

  8. Insert as follows:

    <b:includable id='post' var='post'>
    <div class='post hentry uncustomized-post-template'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
    <h3 class='post-title entry-title'>
    <b:if cond='data:post.allowComments'>
    <a class='comments-button' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:post.numComments/></a>
    </b:if>

    <b:if cond='data:post.link'>
    <a expr:href='data:post.link'><data:post.title/></a>

  9. Save template and then view blog to admire your new comment counter badge.


Tips and Troubleshooting
  1. If you prefer you can replace the button image I have provided with your own image. You can find other buttons easily enough by doing a Google search with a term like "speech button icons".

    Upload your button to a hosting service such as Photobucket and change the URL address of the image in the CSS styling section. The following example will render a smaller blue button. Note I have reduced the font size to accommodate the change. You may need to play around with the settings to get the font sizing right for your image.

    .comments-button {
    width : 48px;
    height : 48px;
    background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBzI52tG8-Plt5l_8fiEdk4u3PjIcY6kmaC2dicUK6bVnsWlSFp89g18r85ypAaWK_KHpfXFyaSy2tN4ZEOw9Iqjj-5nwsElCdWCSAXcTw7CzcoMk7ydYn5aOJnGxdyGQYi1y4ZI4KR3Q8/s200/comment-counter-bubble-2.png) no-repeat;
    float : right;
    font-size : 14px;
    margin-top : -15px;
    margin-right : 2px;
    text-align : center;
    padding-top:10px;
    }


  2. If you want your comment counter to be left aligned instead of right you will need to change the CSS styling from float:right; to float:left;

Covered today how to add a comments counter to a Blogger blog (blogspot blog) that will appear to the right of your blog post title. A comments counter is a way to encourage visitors to comment and is a way of showing off the credibility of your blog posts. Good luck!

    Random Posts...!!!

  • Blog SEO tags Nofollow Labels - save your blog from SPAM
    Blog SEO tags Nofollow Labels - save your blog from SPAM
    04/02/2012 - 0 Comments

    Blogger Label Links effect your blog or site Page Rank in a negative way and that's a fact. Why follow…

  • Accept/Reject All Friends at Once in Facebook
    Accept/Reject All Friends at Once in Facebook
    11/09/2013 - 0 Comments

    In This tutorial We Are Going to Show You How to Accept/Reject All Friends at Once in Facebook.1: So First…

  • How to Add Your Blogger Blog to Facebook
    How to Add Your Blogger Blog to Facebook
    02/07/2012 - 1 Comments

    In today's Blogger tutorial I will show how to add your Blogger blog (Blogspot blog) to Facebook so that your…

  • Negative SEO realy Works and Can I Protect Myself?
    Negative SEO realy Works and Can I Protect Myself?
    01/06/2012 - 0 Comments

    Right after Google’s latest shutdown of a number of different link building websites, there’s been a lot of…

  • The way to produce a Competitive Advantage for your Blog
    The way to produce a Competitive Advantage for your Blog
    10/06/2012 - 0 Comments

    Every single blog should devote itself to produce a sustainable edge so that you can produce a competitive…

  • Here is How to Find Your Twitter RSS Feed and Your Twitter Favorites RSS Feed
    Here is How to Find Your Twitter RSS Feed and Your Twitter Favorites RSS Feed
    05/09/2013 - 0 Comments

    Here is How to Find Your Twitter RSS Feed and Your Twitter Favorites RSS FeedOnce again, there are major…

  • How to Align and Justify Blogger Posts
    How to Align and Justify Blogger Posts
    28/06/2012 - 0 Comments

    Skill Level: Beginner Rating: Easy Time: 1 Minute Before you rush off to download a custom Blogger…

  • Numbered comments on threaded comments for Blogger/Blogspot
    Numbered comments on threaded comments for Blogger/Blogspot
    18/10/2013 - 1 Comments

    In a past tutorial, I've been talking about how you can add numbered comments to your blogger blog and today…

If You Enjoyed This Post Please Take 5 Seconds To Share It!

1 comments:

Unknown said...

I Love your articles guys keep it up.
Newshive Bookmarking

Post a Comment

Please feel free to comment on this topic.

horizontal random post

    Random Posts...!!!

  • 10 Advanced Comment Tricks for Better SEO
    10 Advanced Comment Tricks for Better SEO
    10/10/2013 - 0 Comments

    Many people can come up with some form of advice about SEO, but very few people give you advice about how to…

  • Ways to create backlinks that Google loves
    Ways to create backlinks that Google loves
    19/09/2012 - 0 Comments

    Backlinks is the most important factor in the ranking of a website on the search engines like Google, Yahoo,…

  • SEO copywriting and Good Grammar Tips
    SEO copywriting and Good Grammar Tips
    31/08/2012 - 0 Comments

    Tips about SEO copywriting and Good Grammar When you have a website for your business, it’s a good thing.…

  • Best 14 Tips for Facebook Timeline Business Page
    Best 14 Tips for Facebook Timeline Business Page
    23/09/2012 - 0 Comments

    1. Create a new Facebook timeline cover image.  The cover image provides amazing opportunities for…

  • Remove Navbar From Blogger
    Remove Navbar From Blogger
    25/09/2013 - 0 Comments

    What is Blogger Navbar and Why Remove It?Blogger has got various features of which one is a default…

  • How to Give Your Blogger Template Rounded Corners
    How to Give Your Blogger Template Rounded Corners
    22/09/2013 - 0 Comments

    Adding css is really easy with the new Template Designer. Simply click on the design tab in you Blogger…

  • How to Remove or Change the Blog Title Border in Blogger (Blogspot)
    How to Remove or Change the Blog Title Border in Blogger (Blogspot)
    29/06/2012 - 1 Comments

    In this Blogger tutorial I discuss how to change the blog title border color or remove the border in a…

  • How to Write Effective and Popular Post
    How to Write Effective and Popular Post
    13/08/2012 - 0 Comments

    One popular post can bring you more traffic and links than a number of usual posts. Writing these popular…