Reply To: Search bar format isn't behaving like it used to

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search bar format isn't behaving like it used to Reply To: Search bar format isn't behaving like it used to

#15600
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi Paul,

The issue is caused by some sort of custom script, that seemingly changes the input placeholders (the ‘Search for products..’) text to labels. It simply adds a label element before the search input, and removes the placeholder attribute.
I’m guessing this might be some sort of theme script or maybe a widget script of some sort. There might be a minor difference between the staging and the live configuration somewhere, as I don’t see this there.
Staging source: https://i.imgur.com/NcFiZUC.jpg
vs. live source: https://i.imgur.com/4D8zlbi.jpg

The source marked red is not part of the search output, it is placed there by a 3rd party script. Unfortunately I don’t know which is it. I have tried to run a comparision of staging and live source, but the scripts are minified so there is no way for me to figure it out.

Anyways, try to check the configuration, there might be some difference.
If you can’t find it, then I have made a quick custom script and a custom CSS that may help

.proinput form label {
    display: none !important;
}

Apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.

Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)