How to show Disqus comment count in Blogger


Many of sites have switched to Disqus comment system. It’s fast, easy and simple to use. Many wanted to show the comment count on their homepages. For showing the comment count on your Blogger Blog you can just do a simple trick.

Go to **Blogger -> Template** -> Edit HTML.

Place this Javascript code above .

<script type="text/javascript">
  /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  var disqus_shortname = '<span style="background-color: yellow;">subinsblog</span>'; // required: replace example with your forum shortname
  /* * * DON'T EDIT BELOW THIS LINE * * */
  (function () {
    var s = document.createElement('script'); s.async = true;
    s.type = 'text/javascript';
    s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  }());
</script>

Replace the yellow background text above to your **Disqus **shortname example: subinsblog from subinsblog.disqus.com is the shortname.

Now place the following code anywhere on the template where you want to show comment count :

<a expr:href="data:post.url + "#disqus_thread"">0 Comments</a>

You should place the above code anywhere inside 

 or else the code won’t work.