Hide categories in search bar? - by lorchshop

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

  • Avatar: lorchshop
    lorchshop
    Participant
    April 12, 2018 at 15:32

    Is there a way to hide the category dropdown in the search bar?
    I tried it via Custom CSS with “display: none;” but by refreshing the page the part appears for half a second.

    example

    httsp://www.fleischwolf-shop.de

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 12, 2018 at 15:36

    Hello,

    Have you tried this code?

    .header-wrapper.header-advanced .header-search.act-default .fancy-select {
        display: none;
    }

    Regards

    Avatar: lorchshop
    lorchshop
    Participant
    April 12, 2018 at 15:39

    Yes, I tried a similar code. You can have a look at what happens. The category dropdown is visible while refreshing the page for a short time.

    https://www.fleischwolf-shop.de/produkt/ideapad/

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 13, 2018 at 07:09

    Hello,

    In this case copy woosearchform.php file from xstore theme to xstore-child and remove this code https://prnt.sc/j4chz9 from the file in the child theme.

    Regards

    Avatar: lorchshop
    lorchshop
    Participant
    April 13, 2018 at 08:31

    now it works fine, thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 13, 2018 at 08:37

    You’re welcome!

    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.