Forums › Forums › Search & Filter Pro › Filtering disables stackable accordion funktion
- This topic has 4 replies, 2 voices, and was last updated 5 years, 7 months ago by Anonymous.
-
Anonymous(Private) April 30, 2019 at 2:21 pm #209665
Hello,
I`ve installed the search & filter pro plugin.
The search & filtering works fine.
I´ve also installed the stackable (accordion) plugin to use it with the gutenberg editor.
Each plugin on its own works fine. But when I use the filtering first the accordion will not open.
It seems the filtering disables the event which opens the accordion.
You can have a look here: http://aibau.de/wordpress/aachener-bausachverstaendigentage-tagungsbaende-printIs there any way to fix this so the filtering will not disable the accordion?
Thanks for your help and best regards
EvaTrevor(Private) April 30, 2019 at 2:55 pm #209674The form is being refreshed, along with only part of the page. Thus the script that applies the accordion is not being renewed. IF you know how that is being done, it will be a JavaScript function, you can use custom JavaScript to reapply it. But this would assume you can figure out how to reapply it:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // so load your accordion script here again }); }(jQuery));</script>
-
AuthorPosts