Site logo

Archived topic

WP 5.3 gallery block caption field is gone

16 replies · Started by Mark on November 20, 2019

Viewing posts 1–15 of 17

Since WP 5.3 no more caption field for Gutenberg Gallery block. I have the latest versions of theme and premium. Caption field is working on WP default theme.

No gallery caption

Function did not help. I am able to enter captions by scrolling to the bottom of gallery and clicking on "Media Library" and then "Edit Gallery". Bypassing the gallery block. Captions display fine in the front end I just can't enter them using the Gutenberg gallery block using the GP theme. Works as expected using the Twenty Twenty theme as seen below.

Screen

Ok, when I comment out position: absolute; on line 91 of
wordpress/wp-content/themes/generatepress/css/admin/block-editor.css all is good. Not sure if this will mess with anything else.

That's strange, as WordPress itself adds position: absolute to the same element: http://prntscr.com/pzswxx

The top one is in GP, and the bottom one is Gutenberg.

I'm not experiencing any issues editing the caption inline: http://prntscr.com/pzsx7d

Have you tried deactivating your other plugins to see if there's a conflict somewhere?

I've deactivated all my plugins but still the same result. If things are working for you on 5.3 there there must be something going on my end. I'll do some more digging and let you know what I find. Thank your patience.

Super strange - feel free to send me temporary admin login details if you'd like - that will allow me to take a closer look: https://generatepress.com/contact

Just be sure to mention this topic :)

Unfortunately I'm developing locally using XAMPP so I can't send you a login. Here is what I have discovered if it helps.

After upgrading to WP 5.3 I get this. No Caption
screen

If I delete line 91 position: absolute; from generatepress/css/admin/block-editor.css I get this...
screen

If I delete the selector .editor-block-list__layout from generatepress/css/admin/block-editor.css line 90 I get this, looks like the default backend style...
screen

Do you have another site you can test on? Wondering if it's something specific to that install.

Hi Tom, I upgraded a clients site to WP 5.3 and the same thing happened, gallery caption field is missing. From what I have read it looks like 5.3 blocks can cause all kinds of difficulties for theme developers. It's not ideal but here is my dirty solution that gives me exactly what I need...

Delete the selector .editor-block-list__layout from generatepress/css/admin/block-editor.css line 90 and add the following to custom CSS

.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.6) 70%,transparent);
color: #fff;
padding: 2px 10px 0px;;
box-sizing: border-box;
font-size: 16px;
}

5.3 definitely had some changes when it comes to themes, but I'm not seeing this issue no matter where I look. I'll check with our other team members to see if they can see the issue.

Will let you know :)

That would be great! I just downloaded WP 5.3 directly from the WP site and did a clean install to my local machine with no added plugins and the latest GP theme and captions work fine on default twenty twenty theme but not on GP theme. I sincerely apologize if this turns out to be something on my end but damn if I can figure it out. Tried different browsers, php is up to date.

Thanks

I just checked with David and he's not noticing the issue either.

Is there any way you can set up a live test site where I can see the issue? If I'm able to inspect the issue first hand, I should be able to spot the problem and fix it :)

Thank you!

Hi Tom, Live test site is set up and ready for your inspection. Let me know where to email the login info.

Thanks

This archived topic is closed to new replies.