Image block “expand on click” not working
-
- I published a post with an image block.
- I enabled the “Expand on click” feature for the image block.
- The image on the published post shows an “expand” icon in the upper right corner and displays a magnifying glass icon on mouse hover.
- However, clicking with the mouse anywhere on the image or clicking the “expand” icon yields no results. Nothing happens at all, not even an error message in the dev tools console.
- If I disable the Gutenberg plugin and try again, the image will expand as expected when clicked. However, I do not want to leave that plugin disabled because doing so causes other undesirable behavior.
Here is the post in question: https://travelingworkerbees.com/2023-our-year-in-review/
Is this a known bug? Or is this some sort of problem unique to my site? Any insight or help here would be appreciated.
The blog I need help with is: (visible only to logged in users)
-
Gah! I should have done a search here first. I thought a google search would have shown anything relevant from these forums. Apparently I was wrong.
Can someone please share with me the Github issue so I can track it? Thanks.
-
Hi there, as mentioned here we’re expecting a fix for this issue soon with the next Gutenberg update. Thanks for your patience!
-
Providing a few more debugging details. I’ve been testing the same blog files with about 7 different themes; Expand on click option worked on every image tested on many different pages.
Then, I installed the plugin Classic Widgets with theme Twenty Fourteen. That plugin unexpectedly fixed a host of problems, but created the disabled Expand on click problem. Oddly, not all the images trigger the problem.
-
@ddmcc2015 Apparently this has already been fixed in Gutenberg 17.4. I haven’t tested it yet though…
-
Hi @twb001 I wanted to update you to let you know that while 17.4 has been released to the open-source community but for safety and stability we review the change and ensure it works with our managed hosting before we deploy. Typically this leads to a delay of 24-48 hours, so 17.4 is not active on WordPress.com yet, but will be very soon.
Thanks for your patience!
-
@staff-totoro That explains why I wasn’t able to install the latest version yet. Thanks for the update! I’ll keep an eye out.
-
-
-
Sounds good if one creates a new page going forward, which I haven’t had the chance to do because I have to edit each image html block of over a dozen pages with a dozen or two sets of images in each that already have the wrong html code.
The only remedy I’ve found is to hand edit the wp:image wrapper. Each entry requires inserting “lightbox”:{“enabled”:true}, and replacing the “linkDestination”:”custom” to “none”.
- The topic ‘Image block “expand on click” not working’ is closed to new replies.