miércoles, 18 de abril de 2012

How to number comments in Blogger/BlogSpot

This cool Blogger trick will help you to add comment count inside a speech bubble, so that you & your readers can use the numbers to mention or point to a particular comment on any of your posts. Besides this, numbering your comments might help you to improve the look and feel of your blog.

Note: This works with the previous blogger commenting system, so if you want to apply this trick, first you need to remove the Blogger threaded comments. See here How to remove Blogger threaded comments
UPDATE! Now you can have a comment bubble in your threaded comments also! For more info, please read this tutorial: How to Add Numbered Comments In Threaded Comments
blogger blogspot, tricks

How to add numbered comments on our Blogger/Blogspot blog

how to blog, blogspot blogger

Step 1. From your Blogger Dashboard, go to Template and click on the Edit HTML button:


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box:

Step 3. Type or paste the following code inside the search box and hit Enter to find it:
<b:loop values='data:post.comments' var='comment'>
Step 4. Just above it, paste this code:
<script type='text/javascript'>var CommentsCounter=0;</script>
Step 5. The, find this code:
<data:commentPostedByMsg/>
Step 6. And just below/after it, copy and paste this:
<!--comments-count-starts-->
<span class='comments-number'>
<a expr:href='data:comment.url' title='Comment Link'>
<script type='text/javascript'>
CommentsCounter=CommentsCounter+1;
document.write(CommentsCounter)
</script>
</a>
</span>
<!--comments-count-stops-->
Step 7. Find (CTRL+F) this tag:
</head>
Step 8. Just above the </head> tag, paste this code:
<!-- comments-count-starts-->
<style type="text/css">
.comments-number a:link, .comments-number a:visited {
color: black !important;
text-decoration: none !important;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdkZ7WWwAyfPLH_hAEenhrEcPuav2gWID2cblscmMUTN4rGXU_5ld4cI840Zn8lW2xrXjptP5ZagQWuBolTVccprEIvuWCwmU7ej6Kh0XACWPaITZ_I1WH3YXqiycAQDVEZlXoNTh1ncnJ/s1600/comment+bubble+1.png) no-repeat;
width: 50px; /*image-width size*/
height: 48px; /*image-height size*/
float: right;
display: block;
margin-right: 5px;
margin-top: -15px; /*comments-counter position*/
text-align: center;
font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;
font-size: 15px;
font-weight: normal;
}
.comments-number a:hover, .comments-number a:active {
color: #1BA0E1 !important;
text-decoration: none !important;
}
</style>
<!-- comments-count-stops-http://helplogger.blogspot.com-->

Note:
  • To change the comment bubble, replace the text in red from above with your address
  • To change the color of the numbers, replace the text in blue with the hex value of your color. This tool can help you to pick up any color that you may need: Color code generator

Comment Bubbles 

To choose a comment bubble, right-click on the image and select "Copy Image Address/Location":

how to blogblogger blogspotblogspot blogger, how to blogwidget blogger blogspotblogs, how to blogblogspot or blogger, how to blogtutorials, how tocomments, how to, blogspot bloggernew comment, how to blogblog design, bloggerblogger.com

IMPORTANT: You can use any image instead of the one linked in the code above (STEP 8) but after you need to change the size values (width and height), so that the numbers inside the bubble won't float outside of it.

Step 9. Save the template and enjoy your comments :]

Related tutorial: Add a Comment Bubble to Blogger Post Titles
Share:

15 comentarios:

  1. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.
    link alternatif dewatogel

    ResponderEliminar
  2. Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work..
    토토사이트

    ResponderEliminar
  3. I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers
    situs judi online

    ResponderEliminar
  4. I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!..
    https://www.andicsinger.com

    ResponderEliminar
  5. It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it!
    สูตรบาคาร่า 

    ResponderEliminar
  6. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
    agen judi online terpercaya

    ResponderEliminar
  7. Thanks for the valuable information and insights you have so provided here...
    sa gaming

    ResponderEliminar
  8. Thanks for this article very helpful. thanks.
    big gaming

    ResponderEliminar
  9. I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
    สูตรเสือมังกร

    ResponderEliminar
  10. Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.
    แทงบอลออนไลน์

    ResponderEliminar
  11. Great Information sharing .. I am very happy tco read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post.
    แทงบอลออนไลน์

    ResponderEliminar
  12. Are you in need of a loan?
    Do you want to pay off your bills?
    Do you want to be financially stable?
    All you have to do is to contact us for
    more information on how to get
    started and get the loan you desire.
    This offer is open to all that will be
    able to repay back in due time.
    Note-that repayment time frame is negotiable
    and at interest rate of 2% just email us:
    reply to us (Whats App) number: +919394133968
    patialalegitimate515@gmail.com
    Mr Jeffery

    ResponderEliminar
  13. Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us.
    รีวิวUFABET

    ResponderEliminar

Popular Posts

Blog Archive

Con la tecnología de Blogger.