I have been trying to relocate the default search form in a Zen sub theme using CSS for some time now and having read many posts on here I am still having trouble.
Zen instructions are as follows:
# Themeing Drupal’s search form: Copy the search-theme-form.tpl.php template file from the modules/search/ folder and place it in your sub-theme's folder. And then rebuild the theme registry.
Why? In Drupal 6 theming, if you want to modify a template included by a module, you should copy the template file from the module's directory to your sub-theme's directory and then rebuild the theme registry. See the Drupal 6 Theme Guide for more info.
Having done this while also appending the file name with underscores, still nothing I change seems to affect the search box positioning.
(I have also tried placing this file in the zen parent theme directory with no success)
I have also refreshed the theme registry and cleared the cache....
One post for drupal 5 suggested uncommenting a function in template.php but that function no longer exists in version 6.
I dont want to modify the module directly if I can help it.
I am probably missing something very simple, can someone point me in the right direction?
Thanks in advance
Comments
Relocation of search box
You can relocate your search doing either :
1.
Go to your subtheme page.tpl.php , cut the:
and paste at the needed area of your page.tpl.php
2.
a. Go to your theme settings at admin/build/themes/settings/yourtheme disable the generic search box (uncheck it)
b. Go to block admin at admin/build/block and enable "Search form" block (drag n drop into the suitabe region)
page.tpl.php
Thanks isrealshmueli, I have moved and deleted that piece of code several times and it has no affect on the search box.
I'm almost convinced that its some voodoo magic.... torturous!
ok I just got something to
ok I just got something to work... devel showed that a candidate template file was "search-block-form", not "search-theme-form" as mentioned above. Adding this file to my sub theme has allowed me to modify things.
Thanks