Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi. There's information on how to remove this label using local.css, but how do I specify a label for the search box? Drupal 7 seems to have changed it from "search this site" to "search." Can this also be done with local.css?
Comments
Comment #1
Romejoe CreditAttribution: Romejoe commentedI bellieve you can do it with display:none or just edit the template file.
Comment #2
tonyhspeaks CreditAttribution: tonyhspeaks commentedHi. I decided to put a simple PHP print statement in the search-block-form.tpl.php file after copying the file to the theme directory. Now the file looks like this:
Comment #3
tonyhspeaks CreditAttribution: tonyhspeaks commentedHi. I decided to put a simple PHP print statement in the search-block-form.tpl.php file after copying the file to the theme directory. Now the file looks like this:
edited by silverwing - added code tag
Comment #5
mariolina CreditAttribution: mariolina commentedJust fixed spelling to facilitate searching
Comment #6
agcilantro CreditAttribution: agcilantro commentedWhich template file is this? I looked through page.tpl.php, block.tpl.php and template.php and did not find the label for the search box in any of these.