Hide attribute on filter sidebar when filter is active

This topic has 3 replies, 2 voices, and was last updated 2 years, 5 months ago ago by MarkStore

  • Avatar: MarkStore
    MarkStore
    Participant
    June 6, 2022 at 15:01

    Hello,

    The other day, you gave me a custom css to hide an attribute on my filter sidebar. It worked perfectly.
    This is the custom css you gave me:

    .sidebar .st-swatch-preview .type-select a[href=”https://member.cupidonginza.jp?filter_class=vip”%5D {
    display: none;
    }

    But it works only when the filter is inactive.
    When I click to any filter (filter is active), my hidden attribute is displayed again.
    Can you please help me?

    You can find screenshots, WP admin access and ftp access inside the Private area content.

    Regards

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 7, 2022 at 15:09

    Hello,

    Replace the previous code with this one

    .sidebar .st-swatch-preview .type-select a[href*="vip"] {
        display: none;
    }

    Regards

    Avatar: MarkStore
    MarkStore
    Participant
    June 8, 2022 at 06:32

    Thank you very much as always.

    It works fine!

    Regards

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Hide attribute on filter sidebar when filter is active’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.