-
Notifications
You must be signed in to change notification settings - Fork 384
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 support for captions to the Gallery shortcode #3658
Comments
@kienstra , I retested as per step 12 and opted to "display as carousel" but AMP version of page isn't appearing as carousel: |
Hi @csossi, I'll make a note to look at this again, though it might be a few days. |
Hi @csossi, Maybe this wasn't the case before, but on the testing site, validation looks to be failing, and it's not actually an AMP URL: https://story-test-wordpress-amp.pantheonsite.io/?p=5653 On clicking 'Validate,' this error appears: It might be hard to diagnose that error without the error log, but the Gallery block appears as a carousel in my local when 'Display as carousel' is checked: |
Also, sometimes there's a lightbox for the Gallery block, even with 'Display as carousel' and 'Add lightbox effect' unselected. But it looks like this is from 'auto-lightboxing': |
If it's alright, I'm going to merge this to 'Done.' Feel free to reply if there are more points to bring up. |
You can see the error at the bottom of the page:
|
Fixed by #3921. |
Feature description
The
[gallery]
shortcode does not display captions. It'd be good to add support for them, as the Classic editor uses this for galleries.A follow-up to #2855
Acceptance criteria
[gallery]
shortcode has images with captions, the captions should display in the<amp-carousel>
.Implementation brief
PR Add caption support to the Gallery block in <amp-carousel> and fix displaying Gallery block as carousel in WP 5.3 #3285 added logic for creating an
<amp-carousel>
with slides that can have captions.It'd be good to reuse as much of this as possible, though getting the actual caption text will be different for Gallery shortcodes.
QA testing instructions
/wp-admin
, click 'Media'4572
and3619
, the shortcode would be:Demo
Changelog entry
The text was updated successfully, but these errors were encountered: