Hi, previously I have relied on the search-block-form.tpl.php template to override and heavily style the search box. Is there any way this can be done with the Custom Search Module?

I have been trying to locate the place in the code where you are outputting the html but cannot seem to find it.

The only line of code that might give me a clue is:

$block['content'] = drupal_get_form('custom_search_blocks_form_' . $delta, $delta);

however creating a custom-search-block-form.tpl.php yields no results. The attached image should give you an idea of how I need the search bar to look. This design also requires me to add custom jquery code.

Any help would be much appreciated thanks.

CommentFileSizeAuthor
searchBar.jpg10.88 KBdhayles

Comments

jdanthinne’s picture

I don't use any additional .tpl file other than the default search-block-form.tpl.php.
I'm overriding the default search form instead of creating a new template.
What can't you do exactly?

dhayles’s picture

Hi, if I create my own search-block-form.tpl.php any changes made to it are not registered.

I want to add some jquery to the taxonomy drop down that is enabled by this module so I can then be styled, please see attached image in the original post.

If I can find a way to add a taxonomy list to the original search module by adding it to search-block-form.tpl.php this would make things easier. All i need is for it to render multiple option items i.e.<option value="" >taxonomy Item</option> from a taxonomy list directly into search-block-form.tpl.php.

Do you know if this is possible?

heddn’s picture

Status: Active » Fixed

I'm taking some liberty but a support request from over a year ago is probably
fixed or irrelevant. If you disagree, please reopen and provide more
details.

Status: Fixed » Closed (fixed)

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