Help > Forum > Topics & Posts > Hiding who disliked a post

Hiding who disliked a post

Users can see who disliked a post by clicking the number which appears next to the dislike icon in a post. You can disable this option for general users and only allow administrators to see who disliked posts by following the instructions below:

  1. Log in to your Website Toolbox account.
  2. Click the Appearance link.
  3. In the Appearance menu, click the HTML link.
  4. Insert the following code into the Forum Head Tag HTML Code textbox:

  5. <script>
    document.addEventListener("DOMContentLoaded", function() {
      var isAdmin = (jQ(".header-wrapper .user-panel .admin_user").length > 0) ? 1 : 0;
      if (!isAdmin && jQ("a.postLikeDislikeCount").length > 0) {
        jQ("a.postLikeDislikeCount[id^='total_vote_down_count_']").css("pointer-events", "none");
      }
    });
    </script>
    
  6. Save the changes.

You can also turn off the dislike option.


If you still need help, please contact us.