How To Number Comments On Blogger With CSS




| 7 comments

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.

AuthorAuthor - Paul Crowe is the owner and main author of Spice Up Your Blog.Paul lives in Ireland, has been blogging since 2006 and writing Spice Up Your Blog since 2009.You can find him in the usual social networks.


Join over 5000 Subscribers! Please sign up to receive Updates.

SUYB has its Focus on Quality. If we post Crap, you can unsubscribe.

No Spam and No Garbage! - Use RSS, Twitter & Facebook as an Alternative


If You Enjoyed This Post Please Take 5 Seconds To Share It.

7 comments:

  1. Wonderful post, Since I've used wordpress and other platforms for websites but recently started using blogger too.

    Thanks for awesome tutorial.

    ReplyDelete
  2. Very simple tutorial to add number for comments. I guess we just need to copy the code and isnert it on my blogger template.

    ReplyDelete
  3. Excellent work, Thanks for sharing its very Valueable tutorial.

    ReplyDelete
  4. 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

    ReplyDelete
  5. Thanks! Just what I was looking for!

    ReplyDelete
  6. Brilliant! The other CSS codes made every comment number one, but this one works perfectly!

    ReplyDelete



Important - If you ask a question make sure you tick the "Notify Me" box below the comment form to be notified of follow up comments and replies.


Hire Us