Show Numbering Comments (Comment Numbers) in Blogger

Blogger template can be highly customized if you know how to do this! You can change the look, feel and presentation by making small changes to your blogger template. You have might have seen WordPress blogs that displays comments with numbers. There are several WordPress plugins for comments section to customize, but now you can also show comments on blogger posts with numbers. By applying numbering comments hack to your blogger template, you add a special identity to each comment and it makes the comments section look professional.

comment numbers in blogger


Add Numbering Comments or Comment Numbers hack to Blogger Comments section

  1. Login to your blogger dashboard.
  2. Navigate to Page Elements >> Edit HTML >> Expand Widget templates
  3. Search for the following codes inside your template and add what is highlighted.
  4. <b:includable id='comments' var='post'>
    
    ........
    
    <dl id='comments-block'>
    
    <script type='text/javascript'>var CommentsCounter=0;</script>
    
    <b:loop values='data:post.comments' var='comment'>
    
    <dt style='clear: both;' class='comment-author' expr:id='"comment-" + data:comment.id'>
    <a expr:name='"comment-" + data:comment.id'/>
    <b:if cond='data:comment.authorUrl'>
    <a expr:href='data:comment.authorUrl' rel='nofollow'>
    <data:comment.author/>
    </a>
    <b:else/>
    <data:comment.author/>
    </b:if>
    <data:commentPostedByMsg/>
    
    <span class='numberingcomments' style='float: right; font-size: 20px;'>
    <a expr:href='data:comment.url' title='Comment Link'>
    <script type='text/javascript'>
    CommentsCounter=CommentsCounter+1;
    document.write(CommentsCounter)
    </script>
    </a>
    </span>
    
    </dt>
    
    <dd class='comment-body'>
    .......
    </dd>
    
    </b:loop>
    </dl>
  5. Note that you have to add the highlighted codes only. You can change the font size to suit your template.
  6. Now we are done with the basic set up. Let’s add some style to it by customizing the CSS part.
  7. Search for ]]></skin> inside your template. Add the following code just above it.
  8. .comment-number {
    float: right;
    background: url(http://i40.tinypic.com/14tmp9e.jpg) no-repeat;
    width:50px;
    height:50px;
    margin-right: 15px;
    margin-top: -35px; /*comments-counter position*/
    text-align: center;
    font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;
    font-size: 18px;
    font-weight: bold;
    }
    
    /*since the numbers are actually links, we need to force the color properties*/
    
    .comment-number a:link, .comment-number a:visited {
    color: #445566 !important;
    text-decoration: none !important;
    }
    .comment-number a:hover, .comment-number a:active {
    color: #FF9933 !important;
    text-decoration: none !important;
    }
  9. Save your template to reflect the changes we have made.
  10. You are done.

If you face problems like image counter not aligned to the proper place, you can play with the comments counter position until it gets aligned to proper location. You can edit the following lines in the above code and keep trying until it looks perfect :


margin-right: 15px;
margin-top: -35px;

Now numbering comments hack has been implemented and your blog should display all comments with numbers. If you face any problems, don’t hesitate to use the following comments section.

We will send you some more information related to Show Numbering Comments (Comment Numbers) in Blogger

Below are some more related articles to the topic:

Make Blogger Blog Comments Section DoFollow by Removing Nofollow Attributes!
Show Post & Comments Count in Blogger / Blogspot Blogs
How To Show Comments On Blogger / Blogspot Posts
Add Recent Comments Widget in Blogger / Blogspot
Read More Plugin to show Post Summary with Thumbnails Automatically on Blogger Homepage

Tags: , ,

13 Responses to “Show Numbering Comments (Comment Numbers) in Blogger”

  1. Layla 09. Jul, 2009 at 3:52 am #

    I am having issues with this. It is only numbering my comments, and not all comments posted. Can you please help!!?

    Thank you!
    Layla

  2. Bapun 09. Jul, 2009 at 8:28 pm #

    @ Layla : This hack is to assign numbers to each comment. However, it should show total number of comments on Blogger homepage and labels page. Check if you have followed all steps properly.

  3. Layla 07. Aug, 2009 at 8:08 am #

    Hi Bapun,

    I followed all steps. If i send you a copy of my script, can you help me?

    Please email me at couponjourney @ gmail . com

    Thanks,
    Layla

  4. Bapun 07. Aug, 2009 at 10:06 am #

    @ Layla : Sure. Download the template and send it to bapun [at] solidblogger [dot] com as an attachment.

  5. Karie 26. Sep, 2009 at 2:42 am #

    Thanks so much for this!!

  6. Beth 24. Oct, 2009 at 8:11 pm #

    I have done all of this over and over and I still can’t get it to work. Can you help me? I have giveaways that I need to find the winners by number..pls help!

  7. Jessica 06. Nov, 2009 at 7:45 pm #

    I too cannot get it to work if you could please help I miss my numbers

  8. Crocheted Little Things 06. Dec, 2009 at 9:15 am #

    Just followed all the step and no numbers are showing…..I re- did it a couple of time…..am I missing something??

  9. Crocheted Little Things 06. Dec, 2009 at 9:21 am #

    Never mind works wonderfully!!

  10. Joy 13. Jan, 2010 at 10:31 pm #

    Hello friend! I have a different code in my HTML than what you have above so I have no idea where to put the highlighted codes. Would you mind helping me as I also need my comments numbered for giveaway purposes. Please email me at the address provided and I’ll show you the HTML! Thanks!!!

  11. LissaL 08. Mar, 2010 at 11:15 pm #

    I, like Joy have a different html code and am having trouble. If there is any way you could help me that would be great. I am sending you an email. Thanks:) LissaL

  12. Brandi 13. Mar, 2010 at 9:51 am #

    Hi! I am trying to add the numbers to my friends blog. It worked fine on mine, but when I add the CSS codes it shows it at the top of her blog and doesn’t show any numbers in the comments section. Could you please email me and let me know what might be wrong?

  13. ishan 04. Jun, 2010 at 3:07 pm #

    One of the main feature of using third party comment system is Reply option to comments which blogger lack.
    I recently saw this tutorial on How to add reply option to blogger comments and thought to share with you

Leave a Reply