Reputation: 133
I am attempting to include Disqus comment count to my site. Instructions such as:
"Append #disqus_thread to the href attribute in your links. This will tell Disqus which links to look up and return the comment count. For example: /bar.html#disqus_thread">Link"
Makes no sense to me.
What/where is "#disqus_thread"?
Which links are they talking about?
Upvotes: 1
Views: 1357
Reputation: 3100
There's another part to this, which is the count.js
script that must also be put in your page code. What it does is looks for all the link that have #disqus_thread
appended to them, looks up how many comments are associated with that URL, and replaces the text in the link.
For example, if you have a link on your page where the HTML looks like this:
<a href="http://example.com/path-to-article/">Comment on my page!</a>
You would see this:
If you add the Disqus comment counting script (count.js
), and then change the HTML to this:
<a href="http://example.com/path-to-article/#disqus_thread">Comment on my page!</a>
You would see this (or whatever number are on that page):
Upvotes: 3