By supercabbageuk on
Hey everyone.
I'm working on a theme for Drupal and I can't work out how to remove the "Search this site:" text from the search block. Could anybody please help me out and let me know how to remove this.
Also how can I make the front page display a whole page and not just an excerpt?
My installation is at http://benanderton.co.uk/drupal/
Many thanks for any help given.
Comments
serach.module
Go into the search.module file in the modules/search folder, search for the phrase "search this site"... and delete it!
You shouldn't really edit module files but its a quick and easy fix.
A better solution might be the string overides module: http://drupal.org/project/stringoverrides
Admin > site information
To make the front page display a whole node, dont bother with the promote on front page check box, go to Admin > site information and change the front page to the node required.
Easy!
Thanks and thanks! One more
Thanks and thanks!
One more thing, is there any way of adding extra functionality to the add content system? Something similar to a rich text editor which would allow authors to add pictures, titles, embolden things etc?
For search...
you might want to use the Custom Search Box module. I'm using the 6.x-1.1-beta2 version to do what you need to do.
Try the FCKeditor or TinyMCE
Try the FCKeditor or TinyMCE modules...
Haven't used..
FCKeditor but boy, when I found/used the search box module, it took me about 2 seconds to install and another 2 seconds to modify the text associated with the search menu. Very sweet.
better solution
I don't prefer to change module code or any other page, if you made your own template or theme, you may add this script in file themes/your_theme_folder/page.tpl.php befor closing the body tag
this should do the job
Removing form labels is bad for accessibility
Removing form labels is bad for accessibility and should be left in place and hidden with CSS so users with screen readers and other AT devices know its the search form, you can safely use the following CSS (which is included in Drupal 7 for this express purpose):
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
#1
Nice call Jeff. Definitely best practice.