Hide search bar in header for non login users (visitor)

This topic has 6 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Rose Tyler

  • 5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 20, 2022 at 10:38

    Hello,

    Try to add the next code in Theme Options > Theme custom CSS:

    body:not(.logged-in) .aws-search-form{
        display:none !important;
    }

    Regards

    Avatar: slw250@hotmail.com
    slw250@hotmail.com
    Participant
    October 20, 2022 at 12:17

    we will use the default search not adv woo search.plugin.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 20, 2022 at 12:29

    Try the next code

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

    or contact us once you add the default search in the header.

    Regards

    Avatar: slw250@hotmail.com
    slw250@hotmail.com
    Participant
    October 20, 2022 at 17:27

    thank you for you quick response.
    Yes it works fine, is there anything else you want to do?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 21, 2022 at 07:48

    Hello,

    Great. Thanks for letting us know.
    Is there anything else we can help you with?

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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