# Disable likes/reaction individual user

**URL:** https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374
**Category:** Support
**Created:** [August 31, 2023, 4:00pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374 "2023-08-31T16:00:04Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [August 31, 2023, 4:00pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/1 "2023-08-31T16:00:05Z")

</div>

I saw the note on how to disable likes site wise, and that is not my goal.

I have a singular problematic poster (and yes there are more direct ways to deal with the real issue) that I would like to be able to send a more subtle message than silencing/suspending.

The idea occurred to me if I could pause / prevent reactions to this person’s posts is one way to approach this.

Any thoughts or ideas appreciated.

Thank you!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 31, 2023, 4:05pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/2 "2023-08-31T16:05:06Z")

</div>

I think the solution is the add the user to a group and use CSS to hide the like button from that group.

> [@CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068):
>
> discourse2Summary CSS Classes for Current User’s Groups adds the groups that a member is a part of as CSS classes on the \<body\> tag.eyeglassesPreview [Preview on theme-creator.discourse.org](https://discourse.theme-creator.io/theme/Johani/user-groups-css-classes)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-groups-css-classes-in-body](https://github.com/discourse/discourse-groups-css-classes-in-body)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Before: [image] After: [image] Discourse only adds the current us…

There’s an example there to make something red. You’d do the same to make the like button hidden.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [August 31, 2023, 4:21pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/3 "2023-08-31T16:21:04Z")

</div>

Once you install that component that @pfaffman suggested and add the user, you can do this

```plaintext
.group-NAME {

    .widget-button.btn-flat.toggle-like.like.no-text.btn-icon,
    .widget-button.btn-flat.toggle-like.has-like.fade-out.no-text.btn-icon,
    .widget-button.btn-flat.button-count.like-count.highlight-action.regular-likes.btn-text, 
    .widget-button.btn-flat.button-count.like-count.highlight-action.my-likes.btn-icon-text {
    display: none;
    }
}

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 31, 2023, 4:26pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/4 "2023-08-31T16:26:24Z")

</div>

Just to note, hiding them using CSS wouldn’t disable Likes/Reactions, and could be sidestepped in the browser console or by using [safe mode](https://meta.discourse.org/t/53504?silent=true) (may be relevant depending on how troublesome the user in question felt that day 🙂)

However, I think the question is how to disable other people from being able to Like/React to a specific user’s posts:

> [@fuse](#):
>
> if I could pause / prevent reactions to this person’s posts is one way

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [August 31, 2023, 4:33pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/5 "2023-08-31T16:33:39Z")

</div>

> [@JammyDodger](#):
>
> Just to note, hiding them using CSS wouldn’t disable Likes/Reactions, and could be sidestepped in the browser console or by using [safe mode](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504) (may be relevant depending on how troublesome the user in question felt that day 🙂)

I would add that it is possible to disable [safe mode](https://meta.discourse.org/t/53504?silent=true) for non-admins. But console still exists. 🤷‍♀️

> [@JammyDodger](#):
>
> However, I think the question is how to disable other people from being able to Like/React to a specific user’s posts:

ah yes, that is a different problem altogether 🤔

would be nice if there was a minimum trust level setting for using reactions.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 31, 2023, 4:55pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/6 "2023-08-31T16:55:18Z")

</div>

> [@JammyDodger](#):
>
> I think the question is how to disable other people from being able to Like/React to a specific user’s posts

Oops. I didn’t read carefully enough. A similar solution would be to hide that person’s posts from everyone. That and the pros and cons has been discussed a few times.

---

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [August 31, 2023, 5:58pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/7 "2023-08-31T17:58:04Z")

</div>

Thanks all.

The goal is really “don’t feed the troll” as the individual in question loves to take the counterpoint in discussions, be contentious, and in general hasn’t found an internet hill they are unwilling to die on.

The tough part is generally speaking they contribute positively when they initiate a topic or post. The challenge is how they choose to respond to others.

My rationale is if I can deny the dopamine of likes/reactions maybe the behaviour changes.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [August 31, 2023, 6:50pm UTC](https://meta.discourse.org/t/disable-likes-reaction-individual-user/277374/8 "2023-08-31T18:50:44Z")

</div>

The caveats of CSS solutions have been mentioned before, but here’s the CSS to hide reactions on a specific user’s posts:

```scss
article[data-user-id="12345"] .discourse-reactions-picker {
    display: none;
}

```

Where 12345 is the user’s ID.
