TIPS FOR BLOGGER

TIPS FOR BLOGGER ready to make your blog as a dynamic site......

5 Mar 2012

0

Facebook Comments Counter For Blogger


This is second part of our series on Facebook Comments plugin. Facebook comments are now optimized and easily indexed and crawled by search engines. Facebook comments appear in search results and can drive your traffic both from its 845 Million registered users and also from Mega Search engine Google. I have already shared a tutorial on how to count the number of Facebook comments and show it on your blog
homepage and today we will use the same script but with a different design and feel.  Adding this comment counter is really easy. All you need to do is to track the steps properly. Please see a demo first,


Facebook Comments Series
Part1: Show Facebook comments Inside Tabs in Blogger
Part2: Facebook Comment Counter For Blogger (Blogger + Facebook)
Par3: Optimize Facebook Comments To Increase Blog Traffic

Count Facebook Comments in Blogger

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Click the "Expand Widgets Templates" box
  4. Search for this code,


<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
    5.   The above code can occur thrice. Just replace the first occurrence of the code above with the following code:



    <br/>
    <div style='border-top:1px solid #ddd; border-bottom:1px solid #ddd; padding:3px 0px; text-align:right;'>
    <img class='comments-tab-icon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFi-5yydjYCnZsBNQjWSr3bpLdfixpLAJz1qRELfdQRpahQYfxEiMwJiBt50fWLY9KxiSpZJlTn-Pin36Ysv5uZSLT4l5CHy6X1xC0k7gJ_5YS6TBNlbNf-wV1JVf3OGghib5qgDpWcks/s400/fb.png'/>
    <a class='comment-link' expr:href='data:post.addCommentUrl'><fb:comments-count expr:href='data:post.url'/> Comments</a>


    <img class='comments-tab-icon' src='http://www.blogger.com/img/icon_logo32.gif'/> <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
6.  Next search for   and just above it paste the following CSS line;


.comments-tab-icon { height: 14px;  width: auto;  margin-right: 3px;}
   7.   Save your template and you are all done!
Visit your blogs and you will see Facebook comments Count along with blogger comments count for each post between two horizontal borders.

0 comments:

TIPS FOR BLOGGER Copyright © 2010 | Template design by NANDA | Powered by NILAVAITHEDI