Tagged: menu
Hi guys,
I m using Relevanssi search implementation and made the search bar shown all the time. Everything works well with some css-massaging. The only issue I have is that the ajax result pane will not disappear when
– The search text is deleted
– and/or The input pane is activated
– and/or something outside of the box is clicked
In short: it opens and never closes again. How can I change this to a more expected beahviour?
Thanks again for creating such a cool theme. I is a pleasure to works with for quite some years now!
Best,
El
Hey aerobis,
Please contact the plugin developers for further help – they will be able to provide more assistance.
Best regards,
Basilis
Basilis,
it’s your plugin and has nothing to do with the search engine. You get the same behaviour without it.
Best,
Elmar
Hi Elmar,
Best regards,
Victoria
Hi,
Sorry for the late reply, I wrote this script to remove the ajax search results on click, so when the user clicks away from the results the disappear, yet entering a new search creates a new search result, and it doesn’t interfere with clicking the results.
Try adding this code to the end of your functions.php file in Appearance > Editor:
function remove_ajax_search_response(){
?>
<script>
(function($){
$(window).click(function(){
$( ".ajax_search_response" ).remove();
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'remove_ajax_search_response');
Best regards,
Mike
Mike, works beautifully. Thank you for the support. Should make this standard in your doc about alternative search engines. Best, Elmar
Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)
Best regards,
Mike