Search bar in main menu

Events happening in the community are now at Drupal community events on www.drupal.org.
mmarsello's picture

Hi all,

Has anyone had success incorporating a search bar into their main menu? I thought about just positioning it with css, but the site is responsive so the layout would change as screen size did. I've seen this done on a number of sites but I can't seem to figure out how to do it the drupal way.

Thanks

Comments

Seen this module?

Diane Bryan's picture

Hi mmarsello,

I haven't done this myself, although I've added some custom items to a menu using the Menu Inject Block module:

https://drupal.org/project/menu_inject_block

Themes

miromarchi's picture

I'm not an expert, but I recently changed default theme of my panopoly distribution based site to radix and I see it put the search bar in the main menù. It is automatically responsive. When too tight it becomes just an icon. So I believe you can do it in your theme's files.

Thanks for the info, I will

mmarsello's picture

Thanks for the info, I will check out Radix and see if that meets my needs. On the site in question I ended up hardcoding the menu into the tpl file so was able to do it that way too.