I am using the following code to hide a menu item when a customer is not logged and show it when a customer is logged in.
.hide-item-not-login{
display: none !important;
}
.logged-in .hide-item-not-login{
display: block !important;
}
I applied the class hide-item-not-login
to my menu item and it works fine.
What I actually want is the opposite. I want the menu item to hide when user logs in and show up when the user (cutsomer in woocommerce) is not logged in.
What changes are suggested? Any help is highly appreciated.