Written by Saran on December 1, 2011, Updated December 21, 2013
Installing Disqus Comment
First thing is to register at Disqus, add your site details and Once you are finished, you will be provided with your site's shortname.
Copy & Paste following code in your template anywhere you want Disqus comment system to appear, in my case, I would probably paste it just below article. and replace XXXXX with your website shortname
comments powered by Disqus
Showing Disqus Comments Count
And when you want to display comment counts, just point link to pages where Disqus comments are installed, with #disqus_thread added on your links. Suppose my Disqus comment is located in https://www.sanwebe.com/2012/05/robert-moog-google-doodle page, I would add #disqus_thread after the link, example URL:
Disqus recommends if your site is very large and comments are installed in almost every page, then you should be using Disqus identifier. Disqus uses this identifier to determine the appropriate comment thread to load. If the appropriate thread could not be found, a new thread is created. Disqus identifiers keep threads and pages associated.
To use Disqus identifier in your URL, just create a new attribute called data-disqus-identifier and in value write unique identifier of the page. Something like this :
Sanwebe.com was founded in 2011 by Saran Chamling. A blog truely inspired by the ever changing web development world. It is a small effort to provide useful tips, tutorials and related resources to web developers.