# איך להסתיר כפתור (אייקון SVG) אם המשתמש מחובר?

**URL:** https://meta.discourse.org/t/how-to-hide-a-button-svg-icon-if-user-is-logged-in/302514
**Category:** Development
**Created:** [4 באפריל,‏ 2024,‏ 11:47pm UTC](https://meta.discourse.org/t/how-to-hide-a-button-svg-icon-if-user-is-logged-in/302514 "2024-04-04T23:47:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [5 באפריל,‏ 2024,‏ 12:02am UTC](https://meta.discourse.org/t/how-to-hide-a-button-svg-icon-if-user-is-logged-in/302514/2 "2024-04-05T00:02:32Z")

</div>

You could use the `.anon` class and do it similar to this:

> [@Hide Custom Header Links from anon](https://meta.discourse.org/t/hide-custom-header-links-from-anon/277626/2):
>
> Until there is a cleaner way to do it via an upgrade of the component, you can add this css lines in your theme .anon .custom-header-links { display: none; }

---

_[View the full topic](https://meta.discourse.org/t/how-to-hide-a-button-svg-icon-if-user-is-logged-in/302514)._
