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.
By neopulse on
Hi, i have been customizing the drupal search module's interface, i mean, changing the input button and the input field, all just redefining the css classes.
But how can i erase the label text for the input search field, i now this is not recommended by the accessibility options, but what can i say, the client don't want the "search" text in the region.
Anyone can help me with this, please.
PD: I take a look in the search-theme-form.tpl.php and search-block-form.tpl.php files of the drupal search module, but i didn't find something there.
Comments
I made it
I found the answer by myself (since nobody answer me)
All i have to do is redefine some css styles in my css file.
Those styles are
.block-search{
/*....*/
}
#search-block-form .form-item label
{
display: none; /*erase the label text*/
}
#search-block-form .form-text{
/*....*/
}
#search-block-form .form-submit{
/*......*/
}
I have one thing to do yet, erase the search text in the search button, since i use an image with the text y want to show