Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

What could be preventing Fancybox from running on mobile #2651

Open
CarlosG99 opened this issue Jun 8, 2022 · 3 comments
Open

What could be preventing Fancybox from running on mobile #2651

CarlosG99 opened this issue Jun 8, 2022 · 3 comments

Comments

@CarlosG99
Copy link

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.

@CarlosG99 CarlosG99 changed the title What could be preventing Fancybox from running on mobile on my site What could be preventing Fancybox from running on mobile Jun 8, 2022
@fancyapps
Copy link
Owner

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
Copy link
Author

CarlosG99 commented Jun 8, 2022

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
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants