fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.29k stars 1.79k forks source link

What could be preventing Fancybox from running on mobile #2651

Open CarlosG99 opened 2 years ago

CarlosG99 commented 2 years ago

Hi there,

I run an online e-com store which has an integration with what I believe to be an older version of the fancybox plugin(I didn't code the website myself, just doing some adjustments with novice coding skills, lol):

https://www.janfersport.com.br/legging-modeladora-preto

As seen in the link above, the plugin works fine on desktop but when transitioning to mobile the lightbox simply does not open. I've been trying to wrap my head around the issue for a few days now unsuccessfully, which led this poor soul to come to all of you and humbly ask for some input.

Any help is deeply appreciated.

fancyapps commented 2 years ago

Hi,

You have lots of JavaScript errors on your page. The first thing you should do is to get rid of them, because any JS error can potentially prevent further execution of the code.

CarlosG99 commented 2 years ago

Hi,

You have lots of JavaScript errors on your page. The first thing you should do is to get rid of them, because any JS error can potentially prevent further execution of the code.

Hey man, thanks for the reply!

Do you believe there's something else I could be missing? Or is it more likely to be purely JavaScript?

If there is I could possibly try a work around(if there's any), otherwise I'll have to speak to a more experienced developer since I'm not super familiar with JavaScript(other than the more basic stuff)

fancyapps commented 2 years ago

One of the best features of the Fancybox has always been ease of use. For v2, all you had to do is 1) load all files; 2) execute $(selector).fancybox(); 3) that's it, no extra steps required.