Can I hide a class for general users that are not logged in? I want to hide the price class and add to cart class for all users that are not logged in.
Hi @wicara,
Thank you for writing in, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.
There is no class for log out users, but there is a class for logged-in users that you can use. Append that selector below to your custom CSS rule, so it will only trigger when the viewer of your site is not logged-in.
body:not(.logged-in)
You can find the proper CSS code selector using the Chrome browser Developer Toolbar
For the CSS code itself, I suggest that you get started with this tutorial
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.