Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #1061967

    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!



    Hey aerobis,

    Please contact the plugin developers for further help – they will be able to provide more assistance.

    Best regards,



    it’s your plugin and has nothing to do with the search engine. You get the same behaviour without it.



    Hi Elmar,

    Best regards,

    This reply has been marked as private.

    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(){
      $( ".ajax_search_response" ).remove();
    add_action('wp_footer', 'remove_ajax_search_response');

    Best regards,


    Mike, works beautifully. Thank you for the support. Should make this standard in your doc about alternative search engines. Best, Elmar


    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,

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Make search list disappear again on click in input or outside’ is closed to new replies.