sam_sam Posted May 5, 2022 Share Posted May 5, 2022 Hello, I am trying to disable lightbox functionality on mobile only, because you cannot zoom in with your fingers. I saw some posts on disabling it on gallery page and the code didn't work on my product page. any idea? thank you, samer Link to comment
tuanphan Posted May 7, 2022 Share Posted May 7, 2022 Can you share link to product page? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
sam_sam Posted May 24, 2022 Author Share Posted May 24, 2022 Hello, Sorry for the late reply, I wasn't notified. https://helix-triangle-pdrn.squarespace.com/shop/p/lounge-tunic-lyns8 password: tempo that's the code in the custom css: .gallery-lightbox-item { height: auto !important; width:100% !important; } .gallery-lightbox-wrapper { overflow-x: scroll !important; overflow-y: none !important; width:100% !important; } currently, lightbox shows for both mobile and desktop. I want it only for desktop because i cannot zoom inside mobile when in lightbox view. thank you, Samer Link to comment
Solution tuanphan Posted May 24, 2022 Solution Share Posted May 24, 2022 34 minutes ago, sam_sam said: Hello, Sorry for the late reply, I wasn't notified. https://helix-triangle-pdrn.squarespace.com/shop/p/lounge-tunic-lyns8 password: tempo that's the code in the custom css: .gallery-lightbox-item { height: auto !important; width:100% !important; } .gallery-lightbox-wrapper { overflow-x: scroll !important; overflow-y: none !important; width:100% !important; } currently, lightbox shows for both mobile and desktop. I want it only for desktop because i cannot zoom inside mobile when in lightbox view. thank you, Samer Add to Design > Custom CSS /* Disable lightbox mobile */ @media screen and (max-width:991px) { .ProductItem-gallery-slides { pointer-events: none; } } Photograffix 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment