How To Remove Likes From A Page
I noticed pages have the same like functionality typical posts do. I didn't think my Music page, as an example, really needed a like count.
So I inspected the page, found out how the like counter was defined (.upvote-button), and fiddled around with some CSS until I got it hidden.
Step 1:
Add an html class to the top of the page(s) you want likes removed:
<div class="remove-likes"></div>
Step 2:
In your theme section, add these lines:
body:has(.remove-likes) .upvote-button {
display: none;
}
I'm almost certain there's a more straightforward way of doing this. I'm a C++ and python enjoyer (CSS is not my forte). But this is a quick thing I caveman'd together. If you have a better way of doing this please let me know!!
Anyway, happy almost New Year's :)
Edit
Love this community. Sure enough, someone did know a more efficient way. Apparently the page attribute, make_discoverable, can strip the like feature out of a page. I tried it out and it worked.
I also checked the documentation, but at the time of this post there's no mention of make_discoverable being able to strip likes. But it does work.
Anyway, for pages that method works much better. If for some reason you want to remove likes, but still want your post or page on the discover section, the rest of the steps I put up should still work okay for that.