Forums Forums Search & Filter Pro Filtering disables stackable accordion funktion

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #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-print

    Is there any way to fix this so the filtering will not disable the accordion?

    Thanks for your help and best regards
    Eva

    Trevor
    #209666

    This happens after you filter, and only when you have Ajax enabled in the form settings?

    Anonymous
    #209670

    Yes, that’s right.

    Trevor
    #209674

    The 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>
    Anonymous
    #209676

    I’ll try :-). Thanks for the moment!!

Viewing 5 posts - 1 through 5 (of 5 total)