Move Gallery Captions Back to Below Images
-
I can’t provide a link because this site is only local at the moment, but the problem is easy to reproduce. Beginning in WP 5.0, gallery captions are now on top of the gallery images. If you have a caption with enough lines of text, the captions cover the image on smaller displays so it’s impossible to click the hyperlink on the image to view the full-size image or other page set as a custom link. This happens even with default themes.
It appears the “figcaption” tags are loaded within the “figure” tags for the parent image, so I suspect the best fix involves moving the figcaption out of the figure tag but keeping it within the list item.
There is an issue started regarding this on Github.
In WP 5.x, what’s the best way to move the gallery captions to a position below the associated image like they were in WP 4.9.x?
- The topic ‘Move Gallery Captions Back to Below Images’ is closed to new replies.