Disabling Lightbox on Desktop Only (Full Screen Addon)
-
Hi,
I’m using the Lay Theme with the Full Screen Addon enabled, and I would like to disable the lightbox functionality on desktop views while keeping it active on mobile devices. On mobile, I’m using a custom layout, so it’s important that the lightbox continues to work there. However, for desktop, on certain project IDs, I’d prefer to completely disable the lightbox.
Is there a recommended approach for this setup?
Thanks in advance!
Best,
S -
try this css
.img img{ pointer-events: none; }Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"
how to do css based on certain pages:
https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-pagesorry about the late reply
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login