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
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:
jQuery(function($) {
var text = 'default text';
$('input.orig').val(text);
});
Just change the text variable to whatever you need to 🙂
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)



