Reply To: Add a default search text(item) in the search box

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

#5306

Ernest Marcinko
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:

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 :)