Search bar in main menu I would like to place the search bar in the main menu on the right. I have seen several people on the net asking for this but never encountered some information I could actually use.
I use Drupal 7 and the "Responsive Blog" by Devsaran.

As far as I understand the way to go is inserting some php into the main menu code in the main-menu part in page.tpl. This is what it looks like but I am struggeling with the exact to dos now...

&lt;nav id="navigation" role="navigation"&gt;
  &lt;div id="main-menu"&gt;
    &lt;?php 
      if (module_exists('i18n_menu')) {
        $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
      } else {
        $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu'));
      }
      print drupal_render($main_menu_tree);
    ?&gt;
  &lt;/div&gt;
&lt;/nav&gt;
Here is one approach:


Start by adding a new region to the theme's .info file:

regions[navigation] = Navigation
Next, render the region. Put the code below in page.tpl.php either just before or just after the &lt;/div&gt; in your code above. You may need to experiment a little. 

&lt;?php print render($page['navigation']); ?&gt;
Clear your cache so your site knows that the new region exists.
Next, in Admin -> Structure -> Blocks, place the Search block in the Navigation region. 
Finally, style the search form so it looks the way you want.