Home › Forums › Newbie Helpdesk › Gallery captions
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Balaboit.
-
AuthorPosts
-
BalaboitGuest
Hi, Mister Adult Affiliate!
In Guttenberg, the captions for galleries look awful, as the text is placed on the picture, instead of being under it. Do you have any idea how I can place the caption under the picture, and how I can change the color?
If you take a look at my posts, you will see how bad it looks. Not to mention that on mobile, the picture is barely seen, because the caption covers it almost entirely.
Mr Adult AffiliateKeymasterOn some themes, the captions are still placed under the pictures by default.
I am not a coder, but you might try to add this code to custom CSS:
.wp-caption .wp-caption-text {
background: transparent;
padding: 2px 0;
color: #616149;
text-align: center;
position: relative;
}If it does not work, then remove it and try what you can find here:
wordpress.org/support/topic/move-gallery-captions-back-to-below-images/
wordpress.org/support/topic/image-caption-poorly-placed-on-page-gutenberg-annoyance/
BalaboitGuestThank you!
The code failed, but I will try those forums.
BalaboitGuestI tried to use the classic editor, but the images chosen for the gallery are not displayed. Instead, this is shown:
testing [gallery ids="1727,1721,1724"]
-
AuthorPosts