Step:
1. Dashboard --> Add a Layout ---> Edit HTML / Javascript
2. Copy kod di bawah ni dan pastekan dalam kotak edit html / javascript ..
<center><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></center>
<small><a href="http://editblogcomel.blogspot.com/2014/06/widget-jumlah-post-dan-komen.html" target="_blank">get this</a></small>
3. Save dan lihat hasilnya.... ^_^
source
No comments:
Post a Comment