How to add a search field to the menu?

Hey guys.

I wonder how I add a searchfield to my menu? Any help would be appreciated!

To the menu? I would think it would be above the menu, not a part of it.

Well I was thinking about adding a searchform to the menu, but I don´t remember how it is done. I mean it won´t be a part of the menu, but located in the navbar.

Copy the code in templates/searchform.php modify it to match the Bootstrap markup and add it to templates/header-top-navbar.php.

Thanks man, will do!

If you wanted to post the final code or put it in a gist, you’ll no doubt help others and good things will happen (probably).

I also wanted to add a search box to the menu.

Here’s how I did it:

1 Like