Some bloggers love to show their blog stats to visitors. Actually adding these types of useful widget attract visitors and also blogger themeselves can easily see their blog stats by just viewing their blog. So do you want to show total number of published post and comments in blogger. For adding this widget you just need to add a JavaScript code in your blogger gadget. Follow the below steps to know how to add this widget.
How to Show Total Number of Post And Comment in Blogger
1. Login to blogger.com
2. Click on Dashboard
3. Click on Design Tab
4. Click on "Add a Gadget"
4. Click on "Add a Gadget"
<script style="text/javascript">function mbhTotalCount(json) {document.write(parseInt(json.feed.openSearch$totalResults.$t,10));}</script><p style="font:20px Tahoma;">Total Posts: <script src="http://www.makesomesense.com/feeds/posts/default?alt=json-in-script&callback=mbhTotalCount"></script></p><p style="font:20px Tahoma;">Total Comments: <script src="http://www.makesomesense.com/feeds/comments/default?alt=json-in-script&callback=mbhTotalCount"></script></p>
|
Kindly Note: Please replace http://www.makesomesense.com with your blog URL.
View Your Blog.
Thanks i hope you like this post.

0 blogger-disqus:
Post a Comment