Sal's

Hiding Bear Blog's upvote form

Updates:


A few days after hiding the upvote count via the CSS described in ReedyBear's post, I decide to hide the button altogether on my blog.

Upvoting has been the one part of Bear Blog that doesn't sit right with me. I love being free of the endless popularity contests of social media, which I quit 5+ years ago, yet I still find myself worrying about whether my posts have been upvoted here. I want to not care. But when the numbers exist, apparently I can't help it.

Now that I've made it impossible difficult1 to upvote my posts, I hope to get back to not caring.

Here's the CSS that I tacked onto my theme:

/* custom: hide upvote form */
form#upvote-form {
  display: none !important;
}

It wouldn't work without the !important part, I think because that element has an inline style that takes priority. I've been out of the CSS game for a long time, but I seem to remember !important being a dirty hack. My apologies to the purists, and please email me with a better way!

  1. One exceedingly generous reader got into the browser dev tools and unhid the form so they could upvote my semantic line break post. ❤️