Add Total Posts and Comments Widget Of Your Blog. The widget is look alike below screenshot.
You wanna add this widget on your blog. You can add this widget, just in 3 steps. Follow this steps :
1. Go to your Dashboard > Design > Page Element > Add a Gadget > HTML/Javascript.
2. Copy paste this code below, in it.
<!--START-http://place2how-to.blogspot.com/-->
<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>
<!--END-http://place2how-to.blogspot.com/-->
3. Save it. DONE!
If you want to align the widget at the center. Add this code below after, <!--START-http://place2how-to.blogspot.com/-->
<div style="text-align: center;">
ENJOY!!
Nice post. Everybody wants to know how much he got the comment on his blog or visits on his blog?The above mentioned screen shots clears the thing in big letters. I like the same. I will try this. Thanks
ReplyDeleteelectronic signatures