HOW TO ADD TOTAL POSTS AND COMMENTS WIDGET TO BLOGGER

Its not very impressive for Pro Bloggers,but some bloggers love to show Total Posts and Comments Total Number in Blogger.Actually this widget will Show the Total No Of Comments on your Blog Articles,it fetch the total comments and Total No of Posts in your Blog.This widget is very easy to add,you can put it any where in your Blog.But the most appropriate place for adding this widget is Header or Sidebar,all you have to do is adding a Small JavaScript Code into the Layout Section.

How To Add Total Posts And Comments Widget To Blogger

  • Go To Blogger Dashboard
  • Now Click On Layout
  • Then Click On Add a Gadget
  • A Small Box will Popup,Select HTML/JavaScript
  • And Now Copy the Below Script and Paste it over there
<script style="text/javascript">function mbhTotalCount(json) {document.write(parseInt(json.feed.openSearch$totalResults.$t,10));}</script><p style="font:13px Tahoma;">Total Posts: <script src="http://indiatip.blogspot.com/feeds/posts/default?alt=json-in-script&callback=mbhTotalCount"></script></p><p style="font:13px Tahoma;">Total Comments: <script src="http://indiatip.blogspot.com/feeds/comments/default?alt=json-in-script&callback=mbhTotalCount"></script></p>

Changes In The Widget Script

  • Replace "indiatip.Blogspot.com" with your Own Blog URL
  • If you are interested in Changing the Text of "Total Posts" or "Total Comments",Simply Change the Green with your Own Text.
  • You Can Also Change the Font Size and Style in the Script.
  • After changing Copy the Above Script and paste it in HTML/JavaScript Box and hit save.
  • That's it :)

No comments:

Post a Comment