PurpleTurtleCreative / purple-turtle-creative

Custom theme for the Purple Turtle Creative WordPress website.
https://purpleturtlecreative.com/
GNU General Public License v3.0
0 stars 0 forks source link

Add lightbox functionality for select images #33

Closed MichelleBlanchette closed 9 months ago

MichelleBlanchette commented 2 years ago

Adding a class name to Image blocks should enable lightbox functionality on them. Something like --opens-lightbox

Also, I like when the lightbox lets you flip through all lightbox images. Could even add a "go to" functionality to close the lightbox and scroll to the currently viewable image.

This is for providing screenshots on the Completionist download page and allowing them to be better visible.

BONUS POINTS if you actually add a toggle switch to the Gutenberg Image block itself, rather than quickly hacking with the class name.

MichelleBlanchette commented 1 year ago

This is deprioritized since I was able to make attractive graphics for each Completionist feature, and I don't intend them to be expanded or zoomed. The default click behavior works fine for now.

MichelleBlanchette commented 9 months ago

WordPress now supports lightbox behavior on image blocks by default and it's perfect! Woohoo!