In a previous tutorial you've seen how you can add numbered comments to your blogger blog, unfortunately, this trick worked only for those who don't have the reply option and are still using the old blogger commenting system. But we won't have any problem this time because this tutorial will show you how to add numbered comments with comment bubbles on the threaded comments, as well ;)
What the following CSS trick will do for you:
Isn't that great? I'm pretty sure many of you have been waiting for this cool trick. So, let's begin applying it for our threaded commenting system.
Steps to add bubble comments count
Step 1: From your Blogger Dashboard, go to Template and click on the Edit HTML button:
... click anywhere inside the code area and press CTRL + F to open the Blogger' search box.
Step 2: Type the following tag inside the search box and hit Enter to find it:
Step 3: Add the following code just above ]]></b:skin>:
If you enjoy reading this blog, please share and subscribe. For any questions you may have, leave a comment below.
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 the original comment or a reply (.comment-thread li), it will bring us in front (:before) of the comment's body the number that is the counter.
- Finally, this is incremented in the counter (counter-increment).
See the screenshot:
Isn't that great? I'm pretty sure many of you have been waiting for this cool trick. So, let's begin applying it for our threaded commenting system.
Steps to add bubble comments count
Step 1: From your Blogger Dashboard, go to Template and click on the Edit HTML button:
... click anywhere inside the code area and press CTRL + F to open the Blogger' search box.
Step 2: Type the following tag inside the search box and hit Enter to find it:
]]></b:skin>Note. you have to click on the arrow next to it, then search the ]]></b:skin> one more time
Step 3: Add the following code just above ]]></b:skin>:
.comment-thread ol {Note:
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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQab8JW-1rOwd47_z5OgkyFopTYkT9YzaLw3DYkagUughfKCgwY98IGWI2UykQCEXt_NPCgoZjEJltp0CfxkW8j-pmSMtcX3KcefCjQbX0Va6WwM4ndjSmBmVMwl-e2NrCoxolVV5LE51s/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;
}
- if you want to have no bubble icon, remove the code in red (including the address in blue)
- 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 you may have, 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.
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!
DeleteSince 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!
DeleteGenious css styling!
Delete1/ As @Sara mentioned before, that doesn't work in IExplorer indeed.
I tested against ie9 and earlier. Maybe in ie10 new compatibility would be a change.
2/ About some complains that it didn't work for them.
Maybe the comment form, in new blogger interface, has to be:
|Settings| >> |Posts and comments| >> |Comment Location -> "Embedded"|
or they have done some previous alteretions in their comment code section.
very nice job!
Thank you so much for this. It worked perfectly for me. :-)
ReplyDeleteI'm glad it worked. Thanks for visiting :)
DeleteThe steps are very simple, I don't think I can help you more than that.
ReplyDeleteI 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.
won'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
ReplyDeleteI can see the icons but I can't click on them..
ReplyDeleteLove the look of the speech bubbles. Thanks.
ReplyDeleteTook me a while to work out that Command + F were the find keys for my MacBook Pro
Wow! It worked so easily. You're Awesome!
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. :)
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?
ReplyDeleteTHANK YOU! I searched for ages for an updated tutorial on how to do this - this one looked the most up-to-date and it worked perfectly.
ReplyDeleteOne Lesson at a Time
Could you please help me? I tried following this tutorial and now my blog has duplicate identical comment sections on every blog post. And they still aren't numbered. I would appreciate any advice you could give me to fix my problem. Thanks!
ReplyDeleteHi, Please add this line above ]]> : .comments .comments-content .comment {font-size: 13px;} Change the 13px value to make the font bigger/smaller. I hope this will work for you.
ReplyDeleteYour are star...it worked.have a look http://clicksomemore.blogspot.com/2013/12/good-morning-folks.html?showComment=1388352730635#c6176263991028641025
Thank you so much...will never stop visiting your blog for more updates and tricks
Happy new year in advance!
You're welcome ^_^
DeleteOne more thing, how to disable admin from listed as top commentor as i have to reply some comments and i will always be the top commentor .I dont want this coz Im planning to give a small gift to a winner on monthly basis starting Jan 2014. Pls help
ReplyDeleteEdit the Top Commenters widget and search (CTRL + F) for the "someotherusertoexclude" text, then replace it with your username or any other that you want to exclude.
Deleteperfect.
ReplyDeletebut how can I add a "author" tet to my comment?
thanks
Add this above ]]></b:skin>
Delete.blog-author:after{
content:"Author";
color: #1982D1;
background:#F2F2F2;
padding: 5px;
margin-left: 5px;
}
.icon.blog-author:after{content:none;}
To change the text color replace the #1982D1; value and to change the background color, change the #F2F2F2; value. Hope this helps.
Wow!!!Thanq so much :)
ReplyDeleteIt worked perfectly :)
I have one doubt though I want my numbers to be numbered in a different font from my page.
But when I include font: Georgia its over ridden by the default one...
Do u know how to sort that out?
it didnt work till i removed Threaded comments and the voila....
ReplyDeleteThanks
Perfect blog and very useful for beginners to make a good looking blog. Thanks.
ReplyDelete