[Resolved] Hide button from logged-out users

Home Forums Support [Resolved] Hide button from logged-out users

Home Forums Support Hide button from logged-out users

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2330387
    Heinrich

    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

    #2330463
    David
    Staff
    Customer Support

    Hi there,

    Try this:

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

    Hi David,

    that works perfect!! Thanks for you help.

    #2331242
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.