WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jollyxroger
    Member
    Posted 1 year 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?!

    Thanks,
    JR

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. jollyxroger
    Member
    Posted 1 year ago #

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

  3. RavanH
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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.

    JR

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic