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.
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
Thanks that seemed to bring it back. Any idea why it stopped working after the latest Enfold update?
–
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