What the following CSS trick will do for you:
- When the general block of comments is initiating (.comments-content) a counter called countcomments activates and starts with an initial value of 1.
- 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.
- Then is incremented in one unit the counter (counter-increment).
See the screenshot:
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;
}
- 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
If you enjoy reading this blog, please share and subscribe. For any questions, leave a comment below.





nice tip
ReplyDeletethank you SOOOOOOO much! This was so easy and worked like a charm!
ReplyDeleteThis is a fantastic tutorial and so quick and easy.
ReplyDeleteThank you
Hi, just wanted to check out the thread format.
DeleteAnd find out what happens when you reply to a reply.
DeleteThanks for the tips!
Deletethank you!!! worked perfectly.
ReplyDeleteAwesome tutorial! Worked like a charm. Thanks so much!!
ReplyDeleteMust 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.
ReplyDeletethank you!!
ReplyDeleteFinally 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!
ReplyDeleteJan @ TipGarden.blogspot.com
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?
ReplyDeleteHi 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
DeleteThis 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!
ReplyDeleteI 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
ReplyDeletesuperb post , it was really good
ReplyDeleteOkay 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. :)
ReplyDeleteI 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!
DeleteHi, 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/
ReplyDeleteThe steps are very simple, I don't think I can help you more than that.
DeleteI 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.
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!!!!!!
ReplyDeleteYou're very welcome. Thanks for your feedback!
DeleteThank you so much for this. It worked perfectly for me. :-)
ReplyDeleteI'm glad it worked. Thanks for visiting :)
Deletewon't work for me...can you help me doing it...
ReplyDeletecan you help me how this work for me, i really want this to work, i like this
ReplyDeleteIts good bro! thanks! I love your tutorial its very easy
ReplyDeletefrom
http://fromhobby2money.blogspot.com/
awesome !!1
ReplyDeleteReally informative and great post..
ReplyDeleteThanks Admin, I got it worked on me...:)
ReplyDeletethank 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
ReplyDeleteI 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?
ReplyDeleteOkay 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.
ReplyDeleteThank you so much for this. It worked perfectly for me. :-)
ReplyDeleteHola: 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
ReplyDeletePuede ayudarme? Pongo el codigo como dice y no sale nada
Really Helped me alot Thanks for the tutorial. :)
ReplyDeleteDidn'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
ReplyDeleteNice Tip.
ReplyDeleteNice tip, thanks for sharing, I'm definitely using it in my new template :)
ReplyDeleteHi, 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?
ReplyDeletehttp://bricioleepuntini.blogspot.it/
(still a template under construction, as you see).
Thanks in advance
Giulia
Hi Giulia,
DeleteDelete 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
This worked :) thanks a lot for both sharing and helping!
DeleteThanks..Work fine in Firefox but Numbered Comments doesn't show up in IE9..How to fix?
ReplyDelete