I’m having issues with custom code within a collection item not running after pagination. I’ve contacted webflow support and they suggest i get help with code that can reload my code snippet after pagination reload. Here’s the reply from support,
"In Webflow, interactions and other JavaScript functions typically work on page load. However, when pagination is used and elements on the page are replaced without reloading it, these functions need to be restarted each time the page content changes.
To address this issue, you’ll need to ensure that the functions within the collection items are restarted whenever the page content changes. This might involve manually triggering these functions again after the pagination operation is completed or finding a way to bind these functions to elements dynamically so that they are applied to new elements loaded via pagination."
Does any one know how to achieve that? Thanks a lot!
Yeah, if you want to take that approach, using FS Filter + FS Load, you’ll need to learn some coding, or find a dev. Their API examples are minimalistic. I do that type of work, if you need help you can direct message me for rates.
The other option is to use use native pagination, so that you don’t have your dynamic load issue.
hey man, thanks for your response. I’m actually using finsweet filter and load already. Do you mean that finsweet is stopping my custom code within my collection item to be disabled when pagination happens? I would love to have someone to have a look at it… let me pm you for rates. thanks.
In general, no- FS Load brings new elements into the page, but those elements didn’t exist before when your script ran, so your script hasn’t done its work with them.
The details depend on your specific programming setup and goals.