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!
A simple CSS code should work for that purpose. It will simply hide the stats (but the system continues to count them invisibly).
I think Iβll just ask Support directly
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.
Nippon SekaiΒ thank you very much, though Iβve tried your codes and they didnβt workβ¦ do they work on yours?
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;
}