Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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!

    Best,
    El

    #1062376

    Hey aerobis,

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

    Best regards,
    Basilis

    #1062382

    Basilis,

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

    Best,
    Elmar

    #1063271

    Hi Elmar,

    Best regards,
    Victoria

    #1063602
    This reply has been marked as private.
    #1064859

    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

    #1064950

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

    #1064954

    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

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.