By tanner01 on
I have a web site that's a complete custom design that's already got complete HTML/CSS written for it. I'm now trying to convert/slice it so that I can integrate it into Drupal for managing the content on the site. One area of Drupal theme customization I'm having problems with is the look of the Search form block. What's the best way of customizing the look of it?
Comments
Some pointers
Are you aware of this topic?
Also, see the search_config module.
Drupal's search form has many classes which you can target in your CSS. What you would need to do is look at the search page HTML as produced by Drupal, and see what classes there are. Then you can apply styling to these classes. On a recent site I used the following CSS to style the search form and search results:
Hope this helps!
By following the theme instructions
In your theme template.php, override the appropriate theme_*() function.
A real-life example I did last week:
Overrides the default theme_search_block() from search.module - refactoring the form slightly just before it gets displayed. This eg just tweaks the usual form API to add a few CSS classes and IDs, but here also is where you would be able to output your own HTML if you want.
solarsmarter_2006/template.php.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards