How to disable Likes

Don’t your users like Likes?

Let’s see how to disable them!

Change the relevant site settings

In your site settings search for post menu and remove the like button:

This will disable the :heart: button on posts

Since Likes are also used to increase the user Trust Level, these settings will need to be modified:

  • tl2 requires likes received (set to 0)
  • tl3 requires likes received (set to 0)
  • tl2 requires likes given (set to 0)
  • tl3 requires likes given (set to 0)

There are many other settings related to the Likes but, since the Likes are deactivated, we are not interested in changing them.

Hide references to Likes

There will still be references to Likes on the site, for example in the users profile:

and and also on other pages.

To avoid confusion we can even hide this user setting:

Copy and paste this CSS in a new theme component and add the component to your main theme(s)

/*------USERS PROFILE-----*/

.top-section.most-liked-section, 
.activity-nav a[href*="/activity/likes-given"] {
  display: none;
}

.stats-section li {
  &.linked-stat a[href*="/activity/likes-given"], 
  &:last-of-type {
    display: none;
  }
}

.user-secondary-navigation a[href*="/notifications/likes-received"], 
.control-group.notifications .controls.controls-dropdown:last-child, 
.activity-nav.mobile-nav .drop.expanded li a[href*="/activity/likes-given"], 
.notifications-nav.mobile-nav .drop.expanded li a[href*="/notifications/likes-received"] {
  display: none;
}

.top-section {
  .replies-section, .topics-section {
    display: none;
  }
}


/*-----USERS DIRECTORY-----*/

.users-directory.directory {
  .sortable {
    &[title*="Received"], &[title*="Given"] {
      display: none;
    }
  }

  td {
    &:nth-child(2), &:nth-child(3) {
      display: none;
    }
  }
}

.mobile-view .users-directory.directory .user .user-stat {
  &:nth-of-type(2), &:nth-of-type(3) {
    display: none;
  }
}

/*-----ABOUT PAGE-----*/

.about.stats tr:nth-child(6) {
    display:none;
}

Update Discobot tutorial

If the interactive Discobot tutorial is active, the users will end to a step where they will be asked to like a post :scream:.

New users will find themselves in a situation where it will be impossible to move forward:


But hey, Discobot isn’t Skynet (at least not yet :smirk:) so we can get around that easily!

Let’s start editing @discobot’s messages from your /admin/customize/site_texts page.

You can edit the text with something like this:

Do you know that you can skip steps in this tutorial? Try typing `skip` in your next reply!

Do not use the variable %{skip_trigger}. The skip_trigger variable is not available in those translation strings.


Tips and Tricks (optional)

Disable badges with references to Likes

There are badges that are assigned according to the Likes received and given. By deactivating the :heart: function they become useless and would only create confusion among users. It is advisable (but not mandatory) to deactivate these badges:

  • First Like
  • New user of the month
  • Admired
  • Crazy in Love
  • Empathetic
  • Gives Back
  • Higher Love
  • Respected
  • Appreciated
  • Out of Love
  • Thank You
  • Welcome
  • Great Reply
  • Great Topic
  • Good Reply
  • Good Topic
  • Nice Reply
  • Nice Topic

Revoke badges query

TBD

Reset the Like count (not recommended)

If the site is already active and frequented by users you may want to reset the count of likes given and received. In this case follow Delete all the likes, but note that this is a last-resort reset! You must have a really good reason to do it. The solution of deactivate and hide Likes only with CSS is safer and certainly reversible in the future.

15 Likes

There might be some other places we forgot here. Are there any other places you can think of where Likes are lurking, even after reading the above? cc @Wingtip

Here’s one side effect that surprised me: the “summarize this topic” button will no longer appear, since it requires a threshold of minimum likes in a topic to function.

6 Likes

I didn’t remove the likes myself, I believe @clay did it?

As I recall we didn’t go to great lengths to remove all references to likes from the site from places like user profiles, we just removed the buttons to give likes in the first place.

If someone were to make a component that removed likes in a more elegant way, we would certainly consider using it.

3 Likes

What happens if the site setting summary likes required is set to 0?

So I made a quick test changing the summary likes required setting to 0 but the minimum requirement to make the button appear remains 1 like, so the setting is not disabled changing it to 0.

1 Like

Thanks for this. We are considering removing likes although it’s obviously a big discussion but it’s very useful to have a full process here.

(The rationale is that the boosting benefits of having your post liked may not be outweighed by the negative feeling of people not liking your post or even the number of likes given to a post that disagrees with you.)