Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Add a default search text(item) in the search box › Reply To: Add a default search text(item) in the search box
July 10, 2015 at 3:47 pm
#5306
Keymaster
Hi!
There are several ways to do that. I would not recommend editing the php code, as an update will ruin your changes.
I would rather recommend a javascript solution, which you can add to your site footer between script tags:
[code]
jQuery(function($) {
var text = ‘default text’;
$(‘input.orig’).val(text);
});
[/code]
Just change the text variable to whatever you need to 🙂