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
How to show a piece of content to *only* non-logged in users
Support
2
512
February 8, 2023
How to display a banner for visitors only?
Support
2
825
June 8, 2024
Plugin Login to view content (Working)
Dev
9
890
December 23, 2019
How to disable the banner topic dismiss button for non logged in users only
Support
3
471
August 24, 2020
A spelled out how-to of hiding stuff from non-logged in users
Support
2
762
April 28, 2020