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

neopulse’s picture

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