Change position of search bar in menu

Dear Muffin,

I created a menu on the left. In the menu there is a search form, that automatically appears at the bottom of the menu. Can you give me some code to put it at the top of the menu?

Thanks!

https://kenniscentrumtgg.nl/ (code ktgg)

Comments

  • Hello,

    Sorry, it won't be possible, this type of menu is not prepared for this kind of layout.

    Even, if we would force to be on top, this menu would look like this:


    thanks

  • Alright, thanks for looking into this.

    Another alternative, that you might be able to help me with:

    I now selected the Icon-only option for the website. If the Icon is clicked, the search bar appears. But it appears half on the menu and half on the page.

    Would you maybe have some code for me that positions the search field below the icon instead of next to it?

    Hope so :).

  • This search field type was not created for that kind of header, but please use this CSS code, it will help slightly

    .search_wrapper{
     left: 50%;
     bottom: -20%;
    }
    

    thanks

  • That definitely pushed the search field down a little, but I'd like it go be pushed more to the left (in alignment with the other menu items. Is that possible??

  • Hi,

    Please, add the !important property to the first line from the Pablo CSS.

    It should look like this:

       .search_wrapper{
        left: 50%!important;
        bottom: -20%;
       }
    

    Thanks

  • Oh yes now it works, awesome :).

    On the search page, I customized the input field as follows:

    #searchform input{ height: 48px; font-family: 'Roboto'; font-size: 17px; color: dark-gray !important; }

    code ktgg

    could I also do the same for the input in search field in the menu? doesn't seem to work with my limited coding skills.

    Thank you!

  • Most of the attributes from your code are assigned to the search field in the menu. You only have misspelled color because it should be written without a dash, and you should add !important to the font-size value.

    #searchform input{ height: 48px; font-family: 'Roboto'; font-size: 17px!important; color: darkgray !important; }
    

    Best regards

  • Awesome, thank you!

    Can I also change the background color of the search field in the menu by any change?

  • To change the color in the menu only, use this code:

    #Top_bar #searchform input{
       background-color: #213705!important;
    }
    

    Thanks

  • thanks so much!

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.