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.
- Disable AJAX loading, if this is possible in the theme options at all.
- 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 🙂