• Hi,

    I use the easy-fancybox but have a little problem with. When I switch between the sites (for example from travel to modeling) on my websites which are using the fancybox, it will not open but open the image directly in the browser. When I reload the page, it works.
    Do you have any idea, what is wrong?

    Best Regards,
    Polina

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @polime I have no idea what is going wrong but maybe we can find out more… So you have multiple sites: are they each on their own WordPress installation or are they sub-sites in a Multisite installation?

    Thread Starter polime

    (@polime)

    Hi @ravanh, I only have the site: https://polina-shilikhina.com/en
    Actually I was trying to say: If you switch the page from travel to modelling, the problem occurs. If you refresh the page afterwards, the problem is gone and I can see the lightbox, as expected.

    Ah… “site” as in german “Seite” meaning page?

    Looking at the pages on your site, I see many javascript errors occurring which appears to be coming from the script compression option in Hummingbird. You might try to turn that off…

    But I do not think the script errors are actually causing Easy FancyBox to fail. It is probably the fact that pages are loaded via AJAX request instead of a full page request. Easy FancyBox is waiting for a full page request to activate and bind the light box to image links. Reloading the page does such a full page request.

    This AJAX loading of pages is a theme feature so the short answer is: Easy FancyBox is not compatible with your theme. Does the theme not include its own light box option?

    A longer answer: To get it working with Easy FancyBox, there are two options.

    1. Disable AJAX loading, if this is possible in the theme options at all.
    2. Find out if the theme triggers an event after each AJAX page load (the theme developers can tell you if it exists and what its name is) which we can then use via a custom function to force the light box script to re-activate after such an AJAX page load.

    Let me know if I can help you further 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘FancyBox not loading when switching sites’ is closed to new replies.