I just wondering how to add search box in primary menu?
I've just searching for the answer but this theme's cod quite different with other themes.
Thanks...

CommentFileSizeAuthor
#1 search-box.JPG12.77 KBbedot
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bedot’s picture

FileSize
12.77 KB

I've just figured it out a little by put a code below in page.tpl.php

if (isset($top_menu )) { print theme('links', $top_menu , array('class' =>'links', 'id' => 'main-menu')) print $search_box }

and CSS

#search-theme-form {float: right;}

But I cannot centered it rightly. (refer attachment)
Someone please help me to align my search box correctly.

ollar’s picture

Hi. Add #search-theme-form input.form-text {
{width: 50%;}. If that wont help add #search-theme-form {float: right;} some fixed width like: #search-theme-form {float: right; width: 300px;}. Good luck.

ollar’s picture

Status: Active » Postponed
restyler’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.