Skip to main content

A snippet to remove Likes and Comments count?

I am building a community that aims to be non performative. I want to avoid all popularity metrics at all costs. Hence I would like to remove Likes and comments count, to prevent people from seeking that dopamine rush that comes with people’s approval, which I firmly believe is unhealthy and addictive.

I’d like to know if a snippet could potentially remove the ability to Like posts and another to remove the number of comments.

Thank you!

J B

A simple CSS code should work for that purpose. It will simply hide the stats (but the system continues to count them invisibly).

AS W

J BΒ but I would like to deactivate likes in posts and in comments because just removing their visibility isn’t enough. Why would there be a like option if likes aren’t visible afterwards? It would seem odd

AS W

I think I’ll just ask Support directly

Nippon Sekai

I requested an option (to at least have the ability to disable reactions from settings) several months ago but since it doesn't seem to be on the radar, I hid the elements using css...

This will hide the main reaction icon:

li.fcom_reaction.fcom_reaction_list { display: none; }

This will hide the comment reaction icon:

div.fcom_comments_react.fcom_reaction_list {
display: none;
}

This will hide the comment count:

div.feed_comment_count {
display: none;
}

I know it's not the recommended way, but I also edited the fluent-community/app/Http/Routes/api.php file and commented out any function for react/reaction as a quick hack for my site since there is no need to run functions for non-existing data in the database (I just do it manually whenever the base plugin is updated). The fluent-community/app/HttpControllers directory also has the specific controllers code logic for comments and reactions but I left those alone.

AS W

Nippon SekaiΒ thank you very much, though I’ve tried your codes and they didn’t work… do they work on yours?

Rakid Hasan

AS W,Β please add the following CSS within your Portal's Customisation > Custom CSS section:

/* Standard feed post-like control */

.fcom_feed_footer_actions .fcom_reaction,
.fcom_reactions_count,
.fcom_reaction_list,
.fcom_comments_react {
      display: none !important;
}

/* Remove the comment-count metadata entry */

.fcom_feed_footer_meta .feed_reaction_meta:has(.feed_comment_count),
.feed_comment_count {
      display: none !important;
 }