# How to hide icons to visitors?

**URL:** https://meta.discourse.org/t/how-to-hide-icons-to-visitors/271401
**Category:** Support
**Tags:** tag-icons
**Created:** [February 12, 2023, 10:11am UTC](https://meta.discourse.org/t/how-to-hide-icons-to-visitors/271401 "2023-02-12T10:11:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 12, 2023, 10:11am UTC](https://meta.discourse.org/t/how-to-hide-icons-to-visitors/271401/1 "2023-02-12T10:11:24Z")

</div>

Is there any decently easy way not to show icons to random visitors?

I’m using icons more contentually than just showing decorations (I would like to think that way 😉 ), like giving an easy and general content warning, for example. Then those icons are meaningful for regular users, and all others see just noise.

Most of randoms come directly to a topic via links or search results and direct bouncing rates are quite high (\>70 % is high for me) so an icon together a tag is unnecessary.

Is this a major class question? No, not at all. Not even minor one. But for same reason I don’t show sidebar to lurkers who don’t log in.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 13, 2023, 2:07pm UTC](https://meta.discourse.org/t/how-to-hide-icons-to-visitors/271401/2 "2023-02-13T14:07:04Z")

</div>

You could hide the icons with css for non-logged-in users. Something like this:

```plaintext
html.anon .discourse-tag .d-icon-exclamation-circle {
display: none;
}

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 12, 2023, 12:43pm UTC](https://meta.discourse.org/t/how-to-hide-icons-to-visitors/271401/3 "2023-07-12T12:43:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
