Hi there,
I’m not sure if I understood what you mean. Do you mean to have the images that you created and added using custom blocks to be able to “expand on click”?
If so, it would be mostly to expand and explore the native image block to make it work as expected.
Thread Starter
gcskye
(@gcskye)
Images that I created and added via php/html inside a custom plugin, completely unrelated an outside of blocks.
For example, most lightbox, click to example you simply do “class=”lightbox” and the code takes over.
However, the click to expand seems to add an lot of additional information to the html structure and simply copying its output into a separate file doesn’t replicate the lightbox effect.
How can I, using html, simply use the “click to expand” feature on my images with the 2024 theme without having to create my own lightbox effect?
Hi there,
I see your point now. I’m not sure if that’s even possible honestly.
Also, if I remember correctly, this behavior was introduced as part of the block editor and not added by the theme.
I’ll keep this thread in case someone has ideas, but I think you likely need to recreate this behavior independently (not using the same code).