Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Reinitialize js after ajax filter

Home / Forums / Kadence Blocks / Reinitialize js after ajax filter

This topic is: Not Resolved
[Not Resolved]
Posted in: Kadence Blocks

Tagged: 

August 8, 2022 at 12:24 pm

Hi there. I’m adding ajax filtering to a custom post archive. Currently, I’m experimenting with the Filter Everything plugin, but may also role my own solution or use a different plugin. My issue is that I’m using Kadence a Element to replace the archive loop item content. In this element I have, for example, a Kadence Blocks Advanced Button with the link target set to Video Popup.

This works fine when the archive page first loads. But when an ajax filter is applied, the Video Popup breaks and then the button just links to the video url. How can I force the Video Popup (other other blocks like Modal, etc.) to reinitialize after the ajax filtering? (Looks like I should be able to listen to changes in document.readyState, for example, but I don’t know the js specific to the Blocks that would need to be run.)

Thanks for your help!

  • The forum ‘Kadence Blocks’ is closed to new topics and replies.