# Hiding empty votes via plugin options

**URL:** https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834
**Category:** UX
**Tags:** topic-voting
**Created:** [April 6, 2023, 3:59pm UTC](https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834 "2023-04-06T15:59:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RBoy](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@RBoy](https://meta.discourse.org/u/RBoy)
#### Post date: [April 6, 2023, 3:59pm UTC](https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834/1 "2023-04-06T15:59:17Z")

</div>

Continuing the discussion from [Voting plugin — hiding "empty" votes in the topic list?](https://meta.discourse.org/t/voting-plugin-hiding-empty-votes-in-the-topic-list/206450/2):

Would it be possible to do this via a simple check box from the Voting plugin options UI page?

This is a great tweak which makes the forum more readable / less cluttered but not so easy to implement unless you’re a HTML designer.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 6, 2023, 4:21pm UTC](https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834/2 "2023-04-06T16:21:29Z")

</div>

It doesn’t require any knowledge of HTML. If you’ve never customized the CSS on your site before it’s very simple to do. Check the ‘where do I add my CSS’ section of the below:

> [@Making custom CSS changes on your site](https://meta.discourse.org/t/make-css-changes-on-your-site/168101):
>
> bookmark This guide explains how to make CSS changes on your Discourse site, including an introduction to CSS, where to add CSS in Discourse, and how to find the right selectors using browser inspection tools. person_raising_hand Required user level: Administrator Summary This guide covers: A brief introduction to CSS and key concepts How to add CSS to your Discourse site using theme components Using browser inspection tools to find the right CSS selectors Understanding CSS basics C…

And paste in the snippet from the post you linked.

---

<div class="post-metadata">

### Author: ![RBoy](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@RBoy](https://meta.discourse.org/u/RBoy)
#### Post date: [April 6, 2023, 4:40pm UTC](https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834/3 "2023-04-06T16:40:10Z")

</div>

Thanks, yes I did that after learning how CSS works with Discourse and I was able to get it to work.

This is just a suggestion for ease of use. On a scale of 1 to 10, 10 being writing discourse code and 1 being someone who doesn’t code, using the plugin is like a 1 and understanding and creating CSS customizations is like a 4

Using a plugin option is also likely more portable and less likely for mistakes to happen over time, especially for folks who don’t write code.

---

<div class="post-metadata">

### Author: ![RBoy](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@RBoy](https://meta.discourse.org/u/RBoy)
#### Post date: [April 6, 2023, 8:09pm UTC](https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834/4 "2023-04-06T20:09:56Z")

</div>

To add, it will also avoid errors such as this where the CSS doesn’t always play nice with the UI

> [@Minor bug report in hiding "0 votes" from topic list](https://meta.discourse.org/t/minor-bug-report-in-hiding-0-votes-from-topic-list/213309):
>
> Continuing the discussion from [Voting plugin — hiding "empty" votes in the topic list?](https://meta.discourse.org/t/voting-plugin-hiding-empty-votes-in-the-topic-list/206450/2): If you have “simple” tag display enabled, and the post has at least one tag but no votes, the tag list will be followed by a comma.

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [April 7, 2023, 1:03am UTC](https://meta.discourse.org/t/hiding-empty-votes-via-plugin-options/260834/5 "2023-04-07T01:03:42Z")

</div>

> [@RBoy](#):
>
> Using a plugin option is also likely more portable and less likely for mistakes to happen over time, especially for folks who don’t write code.

Nothing comes for free — and in this case, _someone_ would have to write that plugin code and maintain it over time.
