Replies: 4 comments 3 replies
-
I have no solution in my hands, but need to tell that im facing the same problem right now.. |
Beta Was this translation helpful? Give feedback.
-
Hi, What devices / browsers do you use? I've tested on any major browser on both PC and Mac, and everything works fine for me, so I'm confused. I would be grateful for any further information. |
Beta Was this translation helpful? Give feedback.
-
So, you are saying that, even if you copy/paste sample code from the docs, it does not work for you? Like this - https://jsfiddle.net/4gtyp9so/ - works fine for me on any device/browser. Could you, please, 1) open the developer tools (F12), open the settings (F1) and check "Preserve log upon navigation" in the "Console" section, 2) then visit the site again to check for any JavaScript message? If the image opens in a browser (and not inside Fancybox), it means that a JS error has occurred, but I can't reproduce any issues, so I hope to receive a clue from you. Thanks! |
Beta Was this translation helpful? Give feedback.
-
This is very strange. The only difference between JSFiddle demo and the code used on the homepage is that the homepage uses React. Could this be the cause of the problem? In fact, the homepage is created using Docusaurus v2 (https://docusaurus.io/), and the build process automatically adds Also, make sure you are using the latest Fancybox. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings,
I have been using Fancybox 3, but cannot get Fancybox 4 to work. When I do the console.log test, it shows Fancybox is loaded, but it doesn't trigger for images, even though the a href is coded properly.
The oddest thing, is that even the Fancybox 4 site produces the same failure (so it's not my coding). On the page
https://fancyapps.com/docs/ui/fancybox/plugins/image
The first image is an example of single, which is fine for my use. When you click on that image, you get the same results you would get if there was no fancybox. A single image fills the screen with no controls, and ESC doesn't work.
So I am basically getting the same exact results on my site that the fancybox page is getting on that example.
Rather than ask for help on my site, can anyone figure out why that trigger isn't working on Fancybox's own site? I will assume whatever fixes that will fix mine.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions