Tagged: menu
-
AuthorPosts
-
February 2, 2019 at 11:51 am #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 clickedIn 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,
ElFebruary 3, 2019 at 7:48 pm #1062376Hey aerobis,
Please contact the plugin developers for further help – they will be able to provide more assistance.
Best regards,
BasilisFebruary 3, 2019 at 8:06 pm #1062382Basilis,
it’s your plugin and has nothing to do with the search engine. You get the same behaviour without it.
Best,
ElmarFebruary 5, 2019 at 7:26 pm #1063271Hi Elmar,
Best regards,
VictoriaFebruary 6, 2019 at 1:22 pm #1063602This reply has been marked as private.February 9, 2019 at 6:06 am #1064859Hi,
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,
MikeFebruary 9, 2019 at 4:45 pm #1064950Mike, works beautifully. Thank you for the support. Should make this standard in your doc about alternative search engines. Best, Elmar
February 9, 2019 at 5:42 pm #1064954Hi,
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 -
AuthorPosts
- The topic ‘Make search list disappear again on click in input or outside’ is closed to new replies.
