Total Post Widget Tells your visitors the post that are having been published to your blog and also shows that how many comments have been done to your blog so it can encourage to other people to comment on your blog
Q: 1.Is it difficult to install this hack ?
A: No its so simple that you have to just add an HTML/JAVASCRIPT widget
- First login to your Blogger Dasboard .
- Then Click on Layout.
- Then click on add HTML/JAVASCRIPT.
- Add Below Code to it :
<script style="text/javascript">
function numberOfPosts(json) {
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
function numberOfComments(json) {
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}
</script>
<script src="http://Your-Domain-Name/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="http://Your-Domain-Name/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script> - Then Just Put Custom domain name for Example : www.yoursite.com or yoursite.com
- For Blog URL for example. riteshsanap4u.blogspot.com
- Just Click on Save Button
Filed Under :




0 Responses to “Total Posts and Total Comments Widget”
Leave a Reply
Please Leave your Email Address