August 13, 2011

How To Add Total Posts And Comments Widget For Blogger


How To Add Total Posts And Comments Widget For Blogger


Every bloggers like to know how many comments in their blogs.. but it's very hard to count comments. so today i'm gonna give you  cool total comments & total posts reader to your blog. You can use this widget to promote your blog in other blogs too. Simply follow the steps given below. it’s too easy to add it and it takes less than 1 minute, i hope you like this gadget! read below steps to add this gadget!!!..

1.Login to your blogger Dashboard and go to Desing --> Page Elements.

2.Click on 'Add a Gadget' on the sidebar.

3.Copy and past below code to your javascript.






<script style="text/javascript"> 
function totalPosts(json) { 
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>'); 
} 
function totalComments(json) { 
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>'); 
} 
</script> 
<script src=" /feeds/posts/default?alt=json-in-script&callback=totalPosts"></script> 
<script src=" /feeds/comments/default?alt=json-in-script&callback=totalComments"></script>


4.Now Click on "Save Java Script" You are done..

No comments:

Post a Comment