-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image lightbox: setting alignment causes image not to be expanded on click #60723
Comments
Hey there! Thanks for reporting. I tried replicating this with 6.5.2 but couldn't quite replicate. To explain, I did the following:
Screen.Recording.2024-04-23.at.1.45.57.PM.movI tried to view this on https://www.saintefamile64.org/ but I found that site doesn't load! Any additional info you can provide, including a recording, would be very helpful. |
I have the same problem, updated yesterday to 6.5.2 and none of the images are expanding on the click when previously using the Block Panel Setting they were. (a little example: https://www.sideproject.games/news/the-quintessential-quintuplets-la-serie-di-visual-novel-arriva-in-inglese/ this was done without the update and worked but since yesterday it stays like this) |
Hi @annezazu , could you please let us have the URL of your own test. |
This problem was also reported here https://wordpress.org/support/topic/expand-on-click-disappears-with-jetpack-active/ |
Looks like the latter issue was resolved with Jetpack (I actually ran into my own issues there previously: Automattic/jetpack#32668 (comment)). As for the URL of my site, I was just using playground: https://playground.wordpress.net/ Perhaps try testing there? Of note, make sure you have ruled out a plugin conflict, like the above with Jetpack. |
I had the same problem on this page of my website: https://programai.com.br/android-studio-tutorial/ After investigating a bit, I think I found the issue. When we add an image without any alignment, the .wp-lightbox-overlay .wp-block-image img{
height:var(--wp--lightbox-image-height);
min-height:var(--wp--lightbox-image-height);
min-width:var(--wp--lightbox-image-width);
width:var(--wp--lightbox-image-width);
} This CSS is added here: gutenberg/packages/block-library/src/image/style.scss Lines 254 to 257 in 49c3bf9
However, when an alignment is applied, the .wp-block-image class is no longer added to the To resolve the issue on my site, I added the following CSS to my theme's .wp-lightbox-overlay .aligncenter > img {
height: var(--wp--lightbox-image-height);
min-height: var(--wp--lightbox-image-height);
min-width: var(--wp--lightbox-image-width);
} This works well, at least for centered images. |
Description
This purpose is related to this WordPress issue thread:
https://wordpress.org/support/topic/enlarge-in-click-ko-bug/
Since the last release of WordPress (6.5.2 for my case) the functionality that allows to “Expand on click“ (“Enlarge on click“) an image is not working.
Since version 6.5.2 of WordPress editor, instead of having the option “Expand on click“ within the bloc settings, it is suggested within the associated link. It does not work when you click on the image as visiting the site. It only shows the small image instead of enlarging it.
AND… another point is: You must update all pages having this kind of setting if you want the click working.
If not, nothing happen when you click on the image.
Wordpress “Expand on click“ / “Enlarge on click“ new setting:
With WordPress 6.4 the “Enlarge on click“ function was perfectly working as it was set within the Bloc settings panel lie this:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5.2
Gutenberg coming with WordPress
Browsers used : Firefox 124, SAFARI and others
All supports (computer, smartphones and tablets)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: