Disabling Lightbox on Desktop Only (Full Screen Addon)
General Discussion
2
Posts
2
Posters
252
Views
2
Watching
-
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
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com