Re-triggered accordion script
-
Hi, great plugin, thanks for providing! I’m having a small issue using it alongside Facet WP. If you see the page (“up-feb-22” to access) you’ll see the accordions ‘break’ after a filter is selected. Facet WP have said it is simply because the script that initializes the accordions items runs on the initial page load, but not after each FacetWP AJAX refresh that happens when filtering and and that I’ll need re-trigger the accordions within a facetwp-loaded event:
I think example 2 here is what I need:
https://facetwp.com/help-center/developers/javascript-reference/facetwp-loaded/#usage
Will I simply need to replace the trigger in example 2? And what would the trigger be?
Many thanks
The page I need help with: [log in to see the link]
- The topic ‘Re-triggered accordion script’ is closed to new replies.