Many old bloggers display their total posts and comments just to show how popular their blog is. You can too add this widget to your blog. The widget looks like this:

To add this widget follow these simple steps:
1.Go to Layout>Page Elements
2.Then click on Add Gadget

To add this widget follow these simple steps:
1.Go to Layout>Page Elements
2.Then click on Add Gadget
<script type="text/javascript">
function TotalPosts(json) {
document.write('<b>Total Posts: ' json.feed.openSearch$totalResults.$t '</b>');
}
function TotalComments(json) {
document.write('<b>Total Comments: ' json.feed.openSearch$totalResults.$t '</b>');
}
</script>
<script src="/feeds/posts/default?alt=json-in-script&callback=TotalPosts"></script>
<br/>
<script src="/feeds/comments/default?alt=json-in-script&callback=TotalComments"></script>
5. You can replace the bold part of the code to whatever you like. After editing save the widget and see for yourself.
For Further Reading,
- Wordpress and Blogger to post via G-mail
- Insert Ads Inside Blogger Posts[Only On Post Pages]
- How to Stop or Unsubscribe from Feedburner Email Updates
- Display More Targeted AdSense Ads on Your Blog
- How to add a Google Picasa Web Album Slideshow
- How to Embed Ad Code Anywhere in Your Blogger Template
- Blogger Comment Posting with Name and URL
- Ad Stripe at Top with blink in blogger blog
- Add A Reply Option To Blogger Comments
- 5 Best Blogspot Blogger Hacks
- Replace Home and Posts Links by images
- Ads Theme Blogger Template
- How to Earn Six Figure Money from Blogging by Darren Rowse
- Florist - Free WordPress Dating Theme
- Quick Solution to Protect Your Blog From Spam Harvesters
- Hover Effect Thumbnails Only Related Posts
- 6 Ways To Stay Focused on blog
- Know How to Create a Blogging Community
- 6 Tips To Heart-Stopping Post Titles
- Important Tips For Using Labels On Your Blog
0 comments:
Post a Comment