• Hello, I’ve had trouble finding this answer online. First, than you for the theme and for adding expand on click!

    For plugins I’m building that work with twenty twenty four theme, how can I encode images that use the expand on click function as it exists?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Felipe Santos

    (@foosantos)

    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 tonythetiger

    (@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?

    Moderator Felipe Santos

    (@foosantos)

    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).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Expand on click php/html 2024 theme’ is closed to new replies.