Hello all,

I am totally new to Drupal and was hoping some kind soul would point me in the proper direction to modify the way the search box in a particular theme is displayed. I want one like that which is found at apple.com. I already have the html and css to create the Apple-style search box. I just need to know where the search box lives within a theme and how to alter it.

Thanks in advance!

Comments

sumitshekhawat7331’s picture

First enable search box from the module list.

and paste this code in your page.tpl.php

<form action="?q=search/node" method="post" id="search-form">

<label>Search</label>

<input type="text" class="input-text" value="" size="20" name="keys" />

<input type="submit" value="Search" name="op" title="Search" class="gray-bg-input"/>

<input type="hidden" value="<?php print drupal_get_token('search_form'); ?>" name="form_token" />

<input type="hidden" value="search_form" id="edit-search-form" name="form_id" />

</form>

you can edit this according to ur requirement