Easy FancyBox
[resolved] Easy Fancybox works only after page is refreshed (4 posts)

  1. jollyxroger
    Posted 3 years ago #

    Hi to all! Can't understand why Easy FancyBox works flawlessly if I got access to a page directly, but if I go to that page through the menu, simply the direct image links are shown.
    If the page is refreshed, all works again. I'm confused..

    That's the direct page: http://popularshakespearekompany.com/blog/?page_id=16

    That's the main site: http://popularshakespearekompany.com/blog/ , you can reach the page clicking ATTORI.

    Some suggestions?!



  2. jollyxroger
    Posted 3 years ago #

    Partially solved with the exclusion of dynamically loaded content from theme settings :/

  3. RavanH
    Plugin Author

    Posted 3 years ago #

    Hi, if your theme is loading content (media links) through AJAX, you'll have a problem. FancyBox searches for media and binds itself to the links upon 'document ready' and all content loaded after that event will not be treated.

    Do you know it your theme triggers an event after each new content has loaded? If there is an event triggered, then it could be used to fire a rescan of the document for media links...

  4. jollyxroger
    Posted 3 years ago #

    It's exactly as you wrote. I must figure out the mechanics of that triggering, to be able to fire a rescan (i'm quite a beginner).
    Thank you for the answer, and the useful plugin too.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic