A few weeks back we published a post with An Elegant New Comment Theme For Blogger Blogs called Blue Ice.One of the neat features of that comment theme was the comments were numbered with counter increment.If the full theme was not to your liking but you want to number comments this tutorial is for you.
The counter increment works very well with comment replies by numbering those comments as siblings to the original comment.As seen in the image below the replies to the first comment are numbered 1.1, 1.2 etc..Other comments are then numbered naturally, you can see the comment from the screenshot as a live demo here.
We do this with a simple piece of CSS that;s really easy to add to your blog so lets do it.
Add The Code
Step 1. – In Your (New Design) Blogger Dashboard Click The Drop Down Menu For Your Blog > Choose Customize > Advanced > Add Css, as shown in the video below.
Step 2. Copy and Paste the following code into the Css Section then click Apply To Blog.
/**Numbered Comments By http://www.spiceupyourblog.com **/
.comments ol {
counter-reset: trackit;
}.comments ol li {
counter-increment: trackit;
}.comments ol li:before {
content: counters(trackit, “.”);
font-size: 3.5rem;
color: rgba(0, 0, 0, 0.16);
right: 0.3em;
position: absolute;
padding: .2em 0 0 0;
text-shadow:1px 1px 1px white
}
.comment .comment-content{max-width:85%;}
/**Numbered Comments By http://www.spiceupyourblog.com **/
That’s all check out your numbered comments.Drop your comments and questions below.
7 comments:
Post Comments (Atom)
Wonderful post, Since I’ve used wordpress and other platforms for websites but recently started using blogger too.
Thanks for awesome tutorial.
Reply
Very simple tutorial to add number for comments. I guess we just need to copy the code and isnert it on my blogger template.
Reply
Excellent work, Thanks for sharing its very Valueable tutorial.
Reply
Thank you Paul — it worked like a charm! Saved me from counting through my posts to announce a winner tonight! Much appreciated.
Karen
https://karensquiltscrowscardinals.blogspot.com
Reply
NICE TIPS
zaiim
ReplyDelete
Thanks! Just what I was looking for!
ReplyDelete
Brilliant! The other CSS codes made every comment number one, but this one works perfectly!
Reply