-
Notifications
You must be signed in to change notification settings - Fork 385
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
Add lightbox effect doesn't work for image blocks #3450
Comments
@rsmith4321 Do you have any filters on images like you had for galleries in that other issue? |
As far as I know there are no filters or special settings on my site for images. Does this work on other sites? I just assumed it was something that hasn't been looked at yet similar to the gallery lightbox issue. |
@kienstra Would you please investigate? |
Sure, @westonruter! |
Thanks, I also saw this Hi @rsmith4321, As a quick workaround, does removing the link in the Image blocks help? I could reproduce this issue when the Image block has a link, but the lightbox looks good when it doesn't. I'll look at a code fix in the plugin, but maybe that workaround will help in the meantime. |
Yes this works. Is there an seo disadvantage to no longer linking to the original image? Also, on a desktop I want to target these type of images with cursor:pointer css since the cursor no longer changes on hover. How can I target only lightbox supported images with css? Or perhaps this is something you can add. |
Hi @rsmith4321,
Thanks, that sounds good. Of course, I'll also work on a fix in the plugin for that.
Hm, I'm not sure.
I'll look at this also. |
Hi @rsmith4321,
This worked locally, though maybe you'd want to add selectors so it doesn't apply to all amp-img[data-amp-lightbox] {
cursor: pointer;
} Images that have that |
Request To Test Hi @rsmith4321, Could you please test #3460, which should fix this issue? It should now be possible select links, while still getting the lightbox (though the links won't appear on the front-end): |
There's probably no need to test this now until there's a response on ampproject/amphtml#25021 |
It looks like the direction is to stop using |
Sounds good, thanks for 'bumping' that issue. I'll look at using the |
Sorry I haven't had time to test but it sounds like you are going a different way anyway. The amp-lightbox-gallery lightbox seems a lot more full featured for example the amp-img-lightbox doesn't even have a close icon to indicate how to exit the lightbox. Thanks! |
Sure, no problem in testing, this was dependent on the |
Request For Testing Hi @csossi, Thanks, Claudio! |
Verified in QA |
Bug Description
If an image is inserted using the block editor image block, and under AMP Settings the Add lightbox effect is selected as on. The image is not loaded in a lightbox when clicked.
Expected Behaviour
The image should be loaded in an amp lightbox when clicked.
Steps to reproduce
The first 3 images on this page have Add lightbox effect on with no effect. https://www.ryansmithphotography.com/myrtle-beach-wedding-photography-prices/
Screenshots
Additional context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: