Hi,

For some reason applying a custom theme to Drupal 6 isn't making sense. I would like to modify the search button to read: GO (rather than submit)
and I would like to wrap custom div layers around the fields. How can I do this in version 6?

I already referred to the following pages.. but I'm obviously missing something.
http://drupal.org/node/224183

Any help would be much appreciated. Thank you.

Comments

Anonymous’s picture

If anyone is interested, simply transfer the search_block_form.tpl into your theme directory and add the following:

 <?php //    * Remove "Search this site: "  *    ////
  $search["search_block_form"]= str_replace("Search this site: ", "", $search["search_block_form"]);

  //    * "Search" button with "Go!" *      ////
  $search["submit"]=str_replace('value="Search"', 'value="GO"', $search["submit"]);

  print $search["search_block_form"];
  print $search["submit"];
  print $search["hidden"];

?>
omar alahmed’s picture

Thank you very much man, It works greatly;)

Shmee’s picture

Anybody done something like this in D7 yet?

alexrayu’s picture

Old way of modifying search template will also work if you simply change the text field name from name="search_block_form_keys" to name="search_block_form"

ellanylea’s picture

Or you can modify template.php as summarized in the top part of this Handbook page:

How to Customize the Block Search Form - http://drupal.org/node/154137