Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 Here

    #466473

    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

    #466477

    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

    #468208

    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

    #468224

    Hi!

    In Enfold folder (wp-content/themes/enfold).

    Best regards,
    Josue

    #471737

    Thank you guys, works great now!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Search forms’ is closed to new replies.