Site logo

Archived topic

Hide button from logged-out users

3 replies · Started by Heinrich on September 1, 2022

Viewing posts 1–4 of 4

Hi,

I found a css class from David,but my code doesn´t work:

body:not(.logged-in) {
.button.product_type_simple {
display: none!important;
}}

without body:not(.logged-in) { } it works fine.

thanks in advance

Hi there,

Try this:


body:not(.logged-in) .button.product_type_simple {
    display: none!important;
}

Hi David,

that works perfect!! Thanks for you help.

Glad to hear that

This archived topic is closed to new replies.