How to Add a Comment Counter to Disqus in Blogger ?

| |
If you prefer not to use Blogger’s default commenting system you can use another commenting platform instead such as Disqus. Although it ranks as one of the popular ones out there, it still has its own shortcomings, one of which is the lack of a counter.

Many Disqus users admit that one the things they wish they had is the counter, which helps them keep track of the number of comments.
How to Add a Comment Counter to Disqus in Blogger

Fortunately, there’s a hack to fix this and Hammad Baig ( admin of Techtutshub ) was nice enough to share and post a quick short tutorial on how you can add a counter to your Disqus comments.

Follow the instructions below and be sure to back up your template to be on the safe side.

Step 1 : From your Blogger dashboard go to ‘Template’
Step 2 : Then  ‘Edit HTML’ Click on the ‘Expand Widget Templates’ box to put a check mark in it
Step 3 : Search for this line of code inside your template by pressing ‘Ctrl+F’

<div class='post-header-line-1'/>
 
Step 4 :  Copy/paste this below and immediately after it

<!-- Disqus Comment Count Start-->
<a class='dsq-comment-count comment-link commentslink' 
expr:href='data:post.url + &quot;#disqus_thread&quot;'/> 
<!--Disqus Comment Count End-->
  
Step 5. Save your template and that’s it!

Now you should have the number of comments displayed just below the post’s title, right next to the date.

Via Allblogtools

0 comments:

Post a Comment

Powered by Blogger.