Compatibility with Search&Filter Pro
-
Hello,
On my mobile website (width screen must be under 992px) I have a popup that contains a shortcode from the plugin Search&Filter Pro.
This popup is triggered by clicking on the top right magnifier (see screenshot: https://www.screencast.com/t/fDWIjhBeUH5G). Reminder, browser width must be under 992px.
The 2 dropdown menus in this popup make it possible to filter posts after hitting the button “Rechercher”.
On a first search, everything is OK, after hitting “Rechercher” the popup closes and we see the search results.
The problem is that if we try to search a second time from this result page without refreshing it (by triggering the popup one more time with the magnifier icon), after hitting “Rechercher” the popup doesn’t automatically disappear. This second search actually works but one has to close the popup manually to see the results. I would want the popup to close automatically.
I have asked the question to the developer of Search&Filter Pro and here was his response:
Does the page use Ajax to load the results? If so, you need to re-initialize any JavaScript on that form, like this:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); // call your function here }); }(jQuery));</script>
It is too technical for me. Would you have guidance? Alternatively could you recommend a developer to me on a task/time basis that could help me with this problem?
Thanks,
Nicolas
The page I need help with: [log in to see the link]
- The topic ‘Compatibility with Search&Filter Pro’ is closed to new replies.