Reply To: Easy FancyBox with Content Timeline — not working

Your Account / Forums / Easy FancyBox Pro / Easy FancyBox with Content Timeline — not working / Reply To: Easy FancyBox with Content Timeline — not working

July 1, 2016 at 2:20 am #6734

Hi Michael, this is a tricky one. The Read more link (not a link really) invokes new content to be loaded via ajax. This means the content is not known to the FancyBox script which is why it has not bound itself to any of the image links in that new content.

FancyBox needs to be ‘told’ to scan for new content. This can be done by calling an event called ‘post-load’ on the document. For example, JetPack’s module Infinite Scroll does this every time when it has appended new content after scrolling to the end of an archive page.

So the question is: can the Content Timeline developers build this into their ajax script?

Or maybe there is already an event (with another name) triggered after new content has loaded? If so, what is this event called? It might be possible to use it with a little custom script…