Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1275928

    Gday Enfold support
    Is there any way to disable the auto suggestions in the ajax search?
    I am using a child theme, so perhaps a function?
    Thanks for any help you can provide me.
    cheers
    Darryl

    #1275980

    Hey itchybrain,

    Please refer to the following:

    Best regards,
    Jordan Shannon

    #1275988

    Thanks for your help Jordan, much appreciated. The functions shown on that page didn’t work with the current versions of the theme and/or WordPress, so I had to hide the effects with CSS. I’d prefer to find a programmatic function instead, and I can see that the js file can be modified directly here: https://kriesi.at/support/topic/remove-or-fix-ajax-search-functionality/#post-191973
    I understand that is out of scope for Kriesi support per se, but it would be best if there was a child theme function to achieve the same. I’ll just leave that in the post here in case anyone in the public forum wants to tackle it.
    cheers
    Darryl

    • This reply was modified 3 years, 9 months ago by itchybrain.
    #1277112

    Hi,

    Thank you for the update.

    Aside from the solutions above and from the previous threads, we could instead use this filter in the functions.php file to disable the AJAX search.

    
    function avf_frontend_search_form_param_mod($params)
    {
      $params['ajax_disable'] = true; // disable ajax search
      return $params;
    }
    add_action('avf_frontend_search_form_param', 'avf_frontend_search_form_param_mod',9);
    

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.