Hello! We were wondering if you could help us. We are using the Instant Search plugin with your Enfold theme and the plugin developer advised us to remove the autocomplete=”off” off our search bars on the site so that the plugin could suggest things (please see below)
“About the searchbox in your theme – please remove the autocomplete=”off” so we can take over with suggestions.”
They advised us that you would be able to help with this. Do you think you could?
Thank you,
Gear Out Here
Hi gearouthere!
Please go to Enfold/js folder and open Avia.js file and find following line
currentField = $(e.currentTarget).attr( "autocomplete", "off" ),
and change it to
currentField = $(e.currentTarget),
Regards,
Yigit
Hi!
Modify searchform.php, change line 25:
<input type="text" id="s" name="<?php echo $search_params['search_id']; ?>" value="<?php if(!empty($_GET['s'])) echo get_search_query(); ?>" placeholder='<?php echo $search_params['placeholder']; ?>' />
To:
<input type="text" id="s" autocomplete="off" name="<?php echo $search_params['search_id']; ?>" value="<?php if(!empty($_GET['s'])) echo get_search_query(); ?>" placeholder='<?php echo $search_params['placeholder']; ?>' />
You can have this mod on your child theme.
Best regards,
Josue
Hi Yigit, I made modifications but the plugin still doesn’t override the theme’s search. In Josue’s response, Josue, where woul I locate the searchform.php?
Thank you,
Gear Out Here
Hi!
In Enfold folder (wp-content/themes/enfold).
Best regards,
Josue
Thank you guys, works great now!