• Resolved matteok

    (@matteok)


    Hi,

    how I can use the plugin to dynamically created content (via Ajax).

    Firstly I load all video post, so this works ok. But when I change category I use Ajax to load new content. Here lightbox doesn’t work. It’s open in a new window as a normal _blank link.

    I have an ajax.php file where I created content.
    I would like to reload the fancybox method after load new content.

    Code:

    ajax.php – https://pastebin.com/wRikpSRD
    custom.js – https://pastebin.com/WyFe0x6s

    Any idea how I can fix that?

Viewing 1 replies (of 1 total)
  • Plugin Author arisoft

    (@arisoft)

    Hi

    Call the following JS code after adding dynamic content:

    ARI_FANCYBOX_INSTANCE.convertElements()

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic video – YT, Vimeo’ is closed to new replies.