Monday, April 16, 2012

How to Add A Comment Count Bubble To Blogger Post Titles

A comment bubble with current number of comments displayed to each blogger post titles could make your blog more attractive. This improves not only your comments count but also allows your visitors to see what are the most popular posts on your blog. When a post has many comments, then the comment bubble will show the popularity of your posts to readers and visitors so that they might be more interested in reading them.

So let's start adding it:


Step 1. Go to Dashboard - Template - Edit HTML (click on Proceed button, if needed)


Step 2. Select "Expand Widget Template" (make a backup)

    Step 3. Find - using CTRL + F - the following piece of code in your template:

    ]]></b:skin>

    Step 4. Add the below code just above ]]></b:skin>:

    .comment-bubble {
    float : right;
    width : 48px;
    height : 48px;
    background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsPIuuA5DeAF9Cii9X3Hy1lu8QxPF_JfdqR16AgdnZfXYiCONbQCqjnEKOaACg0M0K4JCcTQIvkSh7Y4JyZl-NeM1OSnelVLHYuwIDlvf7hA-gxuVsPD8TqWEehpXdwnbyJdoHIZ18ZwjA/s1600/speech+bubble+green.png);
    background-repeat: no-repeat;
    font-size : 18px;
    margin-top : -15px;
    margin-right : 2px;
    text-align : center;
    }

    Step 5. Now find this code:

    <b:if cond='data:post.title'>
    <h3 class='post-title entry-title'>

    Note: If you can't find it, search this code instead:

    <b:if cond='data:post.title'>
          <h3 class='post-title entry-title' itemprop='name'>

    Step 6. And add this code immediately after it:

    <b:if cond='data:post.allowComments'>
    <a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #ffffff; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>
    </b:if>

    Note:
    • to change the color of the comments number, replace #ffffff with the hex value of your color;
    • to change the font size, increase/decrease the 18px value;

    Step 7. Preview your template and if everything is ok, click on Save Template.

    Comment Bubbles 

    You can choose one of the images below - right click on the desired image and select "Copy Image Address/Location", then replace the red code from step 3 with the address you just copied.

    bubble comment count, bubble blogger postsblogger comments, comment countblogger blogspot, blogger commentsblogger bubble comment countcomments in blogger titlesblogger tips, blogger tricksblogger widgets, bubble comment countbubble comment countBubble Comment CountBubble Comment Count, blogger blogspot


    That's it! Enjoy (:

    You might also be interested in reading this tutorial:


    adsense

    0 comments:

    Post a Comment

     
     
    Copyright © blog
    Blogger Theme by Blogger Designed and Optimized by Tipseo