How to hide a header element if NOT logged in

Hi, Is there an easy way to apply a visibility switch to the header elements like i can for menu items when using the menu visibility filter such as is_user_logged_in()

I have a couple of Icon toggles that i want to hide unless the user is actually logged in…

You can see them here

https://partners.alevere.com

Hi There,

It could be done by the custom CSS.

Please try adding this custom CSS under Theme Options > CSS:

.my-element {
display: none !important;
}
.logged-in .my-element {
display: block !important;
}

Hope it helps :slight_smile:

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