• Resolved wpshushu

    (@wpshushu)


    Hi,

    Is there a way to initialize fancybox links inserted into DOM dynamically?

    <a href="/url" class="button fancybox-iframe">Dynamic Button</a>

    Thanks
    Shawn

    • This topic was modified 2 years, 2 months ago by wpshushu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, Easy FancyBox is programmed to listen for the event “post-load” used by plugins like Infinite Scroll (Jetpack) for example. You can use that event to have Easy FancyBox rescan the DOM for media links after inserting new elements.

    Thread Starter wpshushu

    (@wpshushu)

    @ravanh Thank you! Works like a charm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dynamic html’ is closed to new replies.