Post and Comment Gadget |
A good looking Gadget can increase
your visitor make the visitor come again to your site. So, it is important to
use useful and good looking gadget in your website.
Today, we are providing you the gadget
which shows your total number of Post or Article of your site and the total
comments.
First, Sign-in your Blogger
Account.
Then, go to
Dashboard > Layout and click on “Add
a Gadget” button and a pop-up window will open.
Pop-up Window |
From the pop-up window, click on “HTML/JavaScript”
HTML/JavaScript |
And copy and paste the following
code shown the below box.
Code Box |
<script style="text/javascript">
function numposts(json) {
document.write('This blog has ' +
json.feed.openSearch$totalResults.$t + ' posts');
}
function numcomments(json) {
document.write(' and ' +
json.feed.openSearch$totalResults.$t + ' Comments');
}
</script><script src="http://bloghelpntips.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numposts"></script><script
src="http://bloghelpntips.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numcomments"></script>
Just, change the highlighted line with your own url.
Then click on the Save button.
0 comments:
Post a Comment