43 Numbered comments on threaded comments for Blogger/Blogspot

In a past tutorial, I've been talking about how you can add numbered comments to your blogger blog and today we'll learn how we can add numbered comments along with comment bubbles on the threaded comments as well.

What the following CSS trick will do for you:
  1. When the general block of comments is initiating (.comments-content) a counter called countcomments activates and starts with an initial value of 1. 
  2. Then, each time the code flow goes through a review of any level, either a principal or a reply comment (.comment-thread li), content will bring us in front (:before) of the body of the comment, the number that is the counter at the time.
  3. Then is incremented in one unit the counter (counter-increment).
See the screenshot:
count comments, comment bubble, forum, blogger

Isn't that great? Well, i'm pretty sure many of you have been waiting for this cool trick. So let's begin applying it for our threaded comments system.

Steps to add bubble comments count

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

...Expand Widget Templates:



Step 2: Search (CTRL + F) for this piece of code:

]]></b:skin>

Step 3: Add the following code just above it:

.comment-thread ol {
counter-reset: countcomments;
}
.comment-thread li:before {
content: counter(countcomments,decimal);
counter-increment: countcomments;
float: right;
z-index: 2;
position:relative;
font-size: 22px;
color: #555555;
padding-left:10px; 
padding-top:3px; 
background: url(
http://4.bp.blogspot.com/-f6ByQfbwApQ/T4x_8p1FGpI/AAAAAAAAB2A/WJKf-ybmvQk/s1600/comment+bubble2.png) no-repeat;
margin-top:7px; 
margin-left:10px; 
width: 50px; /*image-width size*/
height: 48px; /*image-height size*/ 

}
.comment-thread ol ol {
counter-reset: contrebasse;
}
.comment-thread li li:before {
content: counter(countcomments,decimal) "." counter(contrebasse,lower-latin);
counter-increment: contrebasse;
float: right;
font-size: 18px;
color: #666666;
}

Note:
  • for no bubble icon, remove the code in red (including the blue code)
  • to change the comment bubble, replace the code in blue with the URL address of your own icon. If you're not sure what icon you should use, you can find some cool icons in my previous posts (see these tutorials here and here)
  • to change the position of comments count, increase/decrease the values (3 & 10) from padding-top and padding-left
  • to change the position of comments bubble/icon, change the values (10 & 7) from margin-left and margin-top
Step 4: Now Save the Template and you're done!

If you enjoy reading this blog, please share and subscribe. For any questions, leave a comment below.

43 comments:

  1. thank you SOOOOOOO much! This was so easy and worked like a charm!

    ReplyDelete
  2. This is a fantastic tutorial and so quick and easy.
    Thank you

    ReplyDelete
    Replies
    1. Desperately Seeking Code6/29/2012

      Hi, just wanted to check out the thread format.

      Delete
    2. Desperately Seeking Code6/29/2012

      And find out what happens when you reply to a reply.

      Delete
    3. Desperately Seeking Code6/29/2012

      Thanks for the tips!

      Delete
  3. thank you!!! worked perfectly.

    ReplyDelete
  4. Awesome tutorial! Worked like a charm. Thanks so much!!

    ReplyDelete
  5. Must say that you have an easy technique for integration which is producing good commenting system. Can you tell some good system which do not take much time as disqus commenting system takes a lot of time to load.

    ReplyDelete
  6. Finally found you after accidently trying your instructions for the older blogger, this one worked like a charm! It was easy and I am pretty clueless! Thanks again! I'm about to run my first contest and didn't want to count comments for it!
    Jan @ TipGarden.blogspot.com

    ReplyDelete
  7. It looks awesome and is exactly what I want~~ However I have followed your instruction but nothing happened.... may you take a look of my blog and make a guess of what went wrong?

    ReplyDelete
    Replies
    1. Hi Wenson, to be honest i have no idea why it doesn't work for you. Could please send me your template at helplogger76@gmail.com . Thanks

      Delete
  8. This was the EASIEST tutorial ever for adding comments!!! Thank you SO SO much! All other tutorials have you adding lines in 4 or more places and then half of the time it doesnt work, this was great! Thanks!

    ReplyDelete
  9. I really want to do this Igot to the step where it reads make a back up ----- How do I do that I was all ready to go and then I thought I might mess something up

    ReplyDelete
  10. superb post , it was really good

    ReplyDelete
  11. Okay this one worked the comment bubbles are there but all of them are "1". LOL what have I done wrong now? Thank you so much for helping me out here. :)

    ReplyDelete
    Replies
    1. I don't know why this is happening to you. I, however, can't see anything implemented on your blog. Sorry for the late reply and if i can help with something, i would suggest you to add the code again and write me back here to take a peek at your blog to see what's wrong - if there is something. Thanks for visiting!

      Delete
  12. Hi, I have added as you said but It does not work for me. Could you please help me in implementing this in my blog. http://waytobliss.blogspot.in/

    ReplyDelete
    Replies
    1. The steps are very simple, I don't think I can help you more than that.
      I can see no code added therefore i'm not sure if you have added it or why it wouldn't work for you. However, I would advise you to add it again and see if it works this time. In case it doesn't work, please write me back.

      Delete
  13. Since the new interface has offically "kicked-in" this is a DREAM!!! The old javascript method was no longer working and this one is SO EASY! I tested this in Firefox v15, IE9, Chrome v22, Safari v5, and Opera v12 and it works like a charm! It didn't work in IE compatibility mode (IE8 and older), of course but that's ok! THANK YOU SO MUCH!!!!!!

    ReplyDelete
    Replies
    1. You're very welcome. Thanks for your feedback!

      Delete
  14. Thank you so much for this. It worked perfectly for me. :-)

    ReplyDelete
    Replies
    1. I'm glad it worked. Thanks for visiting :)

      Delete
  15. won't work for me...can you help me doing it...

    ReplyDelete
  16. can you help me how this work for me, i really want this to work, i like this

    ReplyDelete
  17. Its good bro! thanks! I love your tutorial its very easy

    from

    http://fromhobby2money.blogspot.com/

    ReplyDelete
  18. Really informative and great post..

    ReplyDelete
  19. Thanks Admin, I got it worked on me...:)

    ReplyDelete
  20. thank so much for ur help! but may I know, how I dont want for example 12.a, 17.b etc... I want it counts all comments into number only for example 12,13,14 etc.. sorry with my broken english

    ReplyDelete
  21. I was able to get this to work for me for the first 200 comments, but can't figure out how to access the next pages of comments. Any tips?

    ReplyDelete
  22. Okay this one worked the comment bubbles are there but all of them are "1". LOL what have I done wrong now? Thank you so much for helping me out here.

    ReplyDelete
  23. Thank you so much for this. It worked perfectly for me. :-)

    ReplyDelete
  24. Hola: No me ha funcionado.Quiero implementar http://1.bp.blogspot.com/-g34ZwqIE7bw/T4yBJMyKrDI/AAAAAAAAB2g/fz0Ilonq-pA/s1600/text_comment_bubble_comments.png y no sé por que debo sustituirlo
    Puede ayudarme? Pongo el codigo como dice y no sale nada

    ReplyDelete
  25. Really Helped me alot Thanks for the tutorial. :)

    ReplyDelete
  26. Didn't work for me either and I tried both ways (the non-threaded comments and threaded). I have the new blogger simple template. Do I have to change any of the other options on blogger for this to work? Here's my blog: http://tressaswishfulendings.blogspot.com

    ReplyDelete
  27. Nice tip, thanks for sharing, I'm definitely using it in my new template :)

    ReplyDelete
  28. Hi, sorry for bothering, I thought it worked well but then I realized all comments are numbered as 1...Do you happen to have an advice?
    http://bricioleepuntini.blogspot.it/
    (still a template under construction, as you see).
    Thanks in advance
    Giulia

    ReplyDelete
    Replies
    1. Hi Giulia,

      Delete the code that you have already added from ]]></b:skin> and add it just above the </head> tag - it should be put between these tags <style type='text/css'> and </style>
      If it still doesn't work, please make a backup of your template and send it to this email: helplogger76@gmail.com

      Thanks

      Delete
    2. This worked :) thanks a lot for both sharing and helping!

      Delete
  29. Thanks..Work fine in Firefox but Numbered Comments doesn't show up in IE9..How to fix?

    ReplyDelete