39 How to Add A Comment Count Bubble To Blogger Post Titles

A comment bubble with current number of comments displayed to each blogger post titles could make your blog more attractive. This improves not only your comments count but also allows your visitors to see what are the most popular posts on your blog. When a post has many comments, then the comment bubble will show the popularity of your posts to readers and visitors so that they might be more interested in reading them.

So let's start adding it:


Step 1. Go to Dashboard - Template - Edit HTML (click on Proceed button, if needed)


Step 2. Select "Expand Widget Template" (make a backup)

Step 3. Find - using CTRL + F - the following piece of code in your template:

]]></b:skin>

Step 4. Add the below code just above ]]></b:skin>:

.comment-bubble {
float : right;
width : 48px;
height : 48px;
background : url(http://2.bp.blogspot.com/-7FFIKA34Kvw/T4x9E0RmA0I/AAAAAAAAALI/03AG305CesI/s1600/speech+bubble+green.png);
background-repeat: no-repeat;
font-size : 18px;
margin-top : -15px;
margin-right : 2px;
text-align : center;
}

Step 5. Now find this code:

<b:if cond='data:post.title'>
<h3 class='post-title entry-title'>

Note: If you can't find it, search this code instead:

<b:if cond='data:post.title'>
      <h3 class='post-title entry-title' itemprop='name'>

Step 6. And add this code immediately after it:

<b:if cond='data:post.allowComments'>
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #ffffff; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>
</b:if>

Note:
  • to change the color of the comments number, replace #ffffff with the hex value of your color;
  • to change the font size, increase/decrease the 18px value;

Step 7. Preview your template and if everything is ok, click on Save Template.

Comment Bubbles 

You can choose one of the images below - right click on the desired image and select "Copy Image Address/Location", then replace the red code from step 3 with the address you just copied.

bubble comment count, bubble blogger postsblogger comments, comment countblogger blogspot, blogger commentsblogger bubble comment countcomments in blogger titlesblogger tips, blogger tricksblogger widgets, bubble comment countbubble comment countBubble Comment CountBubble Comment Count, blogger blogspot


That's it! Enjoy (:

You might also be interested in reading this tutorial:

39 comments:

  1. Great script for bubble count.Yeah bubble counter button makes blog more attractive.Thanks for sharing step by step information of adding bubble counter button.

    ReplyDelete
  2. ...I want to do this but I cannot find either of the two codes in step 4 in my expanded widget template...

    ReplyDelete
    Replies
    1. Hello Amber,

      Then search for this code: <h3 class='post-title entry-title' itemprop='name'>
      Hope it works

      Delete
    2. wow, I'm an idiot. I got it. Thank you very much. It looks great.

      Delete
  3. Thanks, worked fantastic http://aladba.blogspot.com/

    ReplyDelete
  4. I follow all steps you mentioned but i didn't find bubble on my blog....please help me...

    http://techknowgalaxy.blogspot.in/

    ReplyDelete
  5. Actually i am using Facebook comment box..

    ReplyDelete
  6. how to remove the under line when hover?

    ReplyDelete
  7. thanks so much! your site helped me more than any of the others!

    ReplyDelete
    Replies
    1. You're welcome dear. I'm happy that you find it useful :)

      Delete
  8. Finally got it to work! But I was wondering how to center the number inside the bubble ..
    Any tips?

    Here's what it looks like so far ... The number is closer to the top and not centered. ..
    http://papaisapreacher.blogspot.com

    ReplyDelete
  9. thank you. i like this widget.

    ReplyDelete
  10. thank you :). btw, how to change the font colour?

    ReplyDelete
    Replies
    1. I'm sorry, now I've updated my post. Add the code in red from step 5 followed by the apostrophe (') then change #ffffff with the hex value of your color. Hope it works, thanks for visiting!

      Delete
  11. does this works for disqus comments as well ? I'm not using the default comment system provided by blogger, but i want to display comment bubble. Help!

    ReplyDelete
  12. I can't get this to work. :( Reason being ~ I can find either of the codes in Step 4. I did see where you commented and gave another code- I cant find that either. :(

    Please help. I am just using a Simple Template in Blogger if that helps...no special template or fancy coding. Thanks in advance!!!! <3

    ReplyDelete
  13. Do you know how to make the link go to #comments and not #comment-form? Thanks!

    ReplyDelete
  14. Very god. I want to move down the text. How do i do it?

    ReplyDelete
  15. I got is right, but is only the bubble showing. the number of comments not showing in the bubble

    ReplyDelete
  16. This is cute but for some reason my numbers aren't central to my speech bubble. Do you know why this is?

    ReplyDelete
  17. Hi, love your tutorials! Quick question - the bubble is appearing on my posts that already have comments but the ones with no comments have no bubble or comment link? any idea what i need to change?
    www.thebearhut.blogspot.com

    ReplyDelete
  18. I have finally figured it out so please disregard my previous comment. Many thanks

    ReplyDelete
  19. hey it wont work for me :(

    ReplyDelete
  20. Hi...Great post!! Works great.....but do you know how to link the bubble to #comments and not #comment-form? Thanks, A

    ReplyDelete
  21. Thanks! This worked like a charm for me!
    Can anyone help me center the number within the bubble?

    ReplyDelete
    Replies
    1. Man, I played with this for awhile just to figure out how to center the number. OK, here is the solution. In the last code, after:

      font-weight: bold;

      Add this line right after it:

      text-align: center; line-height: 23px;

      Adjust the number according to your images. That'll should work.

      Delete
    2. Thank you! I thought I am going mad on this one, but your solution works great!

      Delete
  22. amazing site thanks for this.

    ReplyDelete
  23. Hey, great tutorial but I have the same problem as everyone else -- how do we center the text in the speech bubble? Also can we move the bubble to the bottom of the post rather than the top right near the title? Thanks!

    ReplyDelete
  24. amazing tutorial, really makes it so easy! Thank you!!

    ReplyDelete
  25. Very good site. Thank you for your help.

    ReplyDelete
  26. Good tutor. I will us it in our coming blog of Puff and Pie.
    Thanks.....! Visit again to this post.

    ReplyDelete
  27. thank you so much for the tutorial. I have customize it, very attractive.

    ReplyDelete
  28. For my blog don't work :(

    ReplyDelete
  29. This web site is very nice .
    The post is Trusted so allmost the very good.
    very good

    ReplyDelete