Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Disqus reaction from the counter?

Two questions for Stackoverflow ninjas:

  1. I have a blog using Disqus. However, the theme I'm using do not have space to have the 'Reactions' (# of Twitters), just have the space for the numbers of the Comments.

    OK, Basically I do not have space enough to stay with this 'Reactions' provided for Disqus. Does anyone knows how could I remove just the 'Reactions" counts from Disqus?

  2. The new Disqus put a box with "Your site is using the new Disqus. Check the Disqus 2012 F.A.Q. or visit our support page for help." message and I would love to remove it. Does anyone knows how to do it?

like image 448
Daniel Neves Avatar asked Jun 21 '12 11:06

Daniel Neves


2 Answers

Edit 2: We've made this easier by including the comment count/reaction count text options back in the Disqus settings. This is now possible by simply going to your Disqus admin and adding the HTML tags mentioned in the original answer below.

Edit 1: As of a couple of weeks ago the below solution is no longer valid due to the deprecation of the Disqus Classic settings. For now the only way to remove the reaction counter would be to disable reactions entirely, or use the Disqus API to get raw thread data.

In Disqus Classic we had a way to change the comment count link text in the appearance settings. We're working on adding it back to Disqus 2012, but for now you can get around it by following these steps:

  1. Go to your Disqus admin's general settings and uncheck "Enable Disqus 2012" at the very top
  2. After you click Save Changes, you'll see a new tab along the top called "Appearance" - click that
  3. In your Appearance settings, scroll down to "Comment count link"
  4. Remove the word "Comment(s)" from each entry. Then you'll want to insert some HTML with an inline style of "display:none;" to remove the reaction text.

Here's what all of the fields should look like to just get a number:

Zero Comments      | 0<span style="display:none;">
One Comment        | 1<span style="display:none;">
Multiple Comments  | {num}<span style="display:none;">

Zero Reactions     | 0 Reactions</span>
One Reaction       | 1 Reaction</span>
Multiple Reactions | {num} Reactions</span>

Now you can go ahead an re-enable Disqus 2012 again and the comment count link preferences will carry over.

We've also turned off the "New Disqus" header.

like image 55
Ryan V Avatar answered Oct 15 '22 20:10

Ryan V


Uncheck "Enable Disqus 2012 features for your site", then go to the appearance tab and there you'll find the comment count and reaction settings which you can customize the words as you want.

like image 44
Riyo Avatar answered Oct 15 '22 20:10

Riyo