Tomer Lichtash
Tomer Lichtash

Reputation: 9262

Change input value on Wordpress' get_search_form()

Trying to use the new get_search_form() function on WordPress, I noticed I can't remove the textual label from the search submit button.

Any ideas?

Upvotes: 0

Views: 3903

Answers (2)

lghinelli
lghinelli

Reputation: 31

the quick and easy is to create a new template named searchform.php in your theme directory.

in that way get_search_form() will load your form instead of the default one.

Upvotes: 3

Tomer Lichtash
Tomer Lichtash

Reputation: 9262

Got it partially working with:

$(document).ready(function(event){
$("input#searchsubmit").attr("value","");

Still, the value disappearance takes WAY too much time. How can I get rid of it in the first place?

Upvotes: 2

Related Questions