Discourse Meta
How to hide a button (SVG icon) if user is logged in?
Dev
Arkshine
April 5, 2024, 12:19am
16
Try this, to include the
<li>
.
html:not(.anon) .header-icon-login { display: none; }
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Add button in header for logged in users
Dev
5
738
September 25, 2023
Display Header HTML to only Logged in Users
Support
13
4203
May 10, 2019
Hide Custom Header Links from anon
Dev
custom-header-links
4
326
June 3, 2025
Add a link to user profile in the navigation
Support
8
524
March 29, 2024
How to show a piece of content to *only* non-logged in users
Support
2
508
February 8, 2023