On https://elliottlandy.com/popcolor/ my client would like to disable the pop-up slideshow on the mobile version when you click on one of the images in the masonry grid but leave it running on the desktop version. Do you have a css or php hack for that? Much appreciated.
Hey tonyiatridis,
Thank you for the inquiry.
To disable the lightbox or pointer events for the masonry item on mobile devices, you can use the following CSS code:
@media only screen and (max-width: 767px) {
/* Add your Mobile Styles here */
.av-masonry-entry.av-masonry-item-loaded {
pointer-events: none;
}
}
By setting pointer-events to none, the masonry item will no longer respond to user interactions, effectively disabling the lightbox or any other pointer events associated with it.
Best regards,
Ismael