Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1442836

    Hello. When I try to enter any search term, say “1 gallon pail”, the ajax results box that used to be there is now gone, nothing drops down from the search box. Any idea why this has happened and how I can get it back? THanks.

    #1442961

    Hey Illingco,
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function turn_search_widget_into_ajax_search() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
      (function($){
      $("#search-6 #searchform").removeClass("av_disable_ajax_search");
    })(jQuery); 
    });
    </script>
      <?php
    }
    add_action( 'wp_footer', 'turn_search_widget_into_ajax_search', 99 );

    Best regards,
    Mike

    #1443265

    Thanks that seemed to bring it back. Any idea why it stopped working after the latest Enfold update?

    #1443282

    • This reply was modified 6 days, 16 hours ago by Illingco.
    #1443286

    Hi,
    Glad we were able to help, I don’t this search widget originally had this behavior as I couldn’t reproduce it, but nonetheless glad that it works for you now. If you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Search ajax not showing after update’ is closed to new replies.