Hello Webflow Community,
I’m working on a project where I’d like every image on my website to open in a lightbox when clicked, without altering their original size or layout on the page. I’ve explored Webflow’s native lightbox component, but it seems to require manual setup for each image, which isn’t feasible for my needs.
What I’ve Tried:
I’ve attempted to implement custom JavaScript solutions that wrap each image in a lightbox link dynamically. While some approaches partially worked, I encountered issues such as:
-Layout Disruptions: Some scripts altered the image’s original size or alignment.
-Inconsistent Behavior: Not all images responded to the lightbox functionality as expected.
-Manual Effort: Solutions requiring manual adjustments for each image aren’t practical due to the number of images.
Has anyone successfully implemented a site-wide lightbox feature for all images in Webflow? I’m looking for a solution that:
- Preserves the original appearance and layout of images.
- Applies the lightbox effect to all images automatically, including those added in the future.
- Is user-friendly and doesn’t require extensive manual setup for each image.
Any guidance, code snippets, or references to existing solutions would be greatly appreciated. Thank you in advance for your assistance!
Here is my site Read-Only: [LINK][1]