Simple function to show image in a lightbox?
-
Hi
With an image block in Gutenberg, I simply want the enlarged image to be viewable in a lightbox. Is there a simple functions snippet I can add so I can add a simple CSS class to an img to achieve this?
Is there a native WP function that can be triggered with a functions snippet? If not, is there a super lightweight, free and open source, up-to-date vanilla solution? Surely this can be done without heavy plugins and eternal software subscriptions?
I’d really appreciate any thoughts on this. I have spent a lot of time trying to find a solution, but I haven’t found the simple, verified solution I’m after. I try to keep everything as integrated with native Gutenberg functionality as I possibly can…
- The topic ‘Simple function to show image in a lightbox?’ is closed to new replies.