-
AuthorPosts
-
June 29, 2015 at 11:18 pm #466095
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 HereJune 30, 2015 at 2:49 pm #466473Hi 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,
YigitJune 30, 2015 at 2:53 pm #466477Hi!
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,
JosueJuly 3, 2015 at 7:58 pm #468208Hi 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 HereJuly 3, 2015 at 9:16 pm #468224Hi!
In Enfold folder (wp-content/themes/enfold).
Best regards,
JosueJuly 10, 2015 at 10:09 pm #471737Thank you guys, works great now!
-
AuthorPosts
- The topic ‘Search forms’ is closed to new replies.
