Archived topic
Image Caption Customization & Centering
4 replies · Started by Jason on April 4, 2020
Hello,
I've reviewed the support forums and I'm unable to find assistance with the following.
#1 I want to center the captions underneath the images that are in-content.
#2 I want to add a small 30 px background coloring behind the image caption text, coloring #eaeae8 so it's different from the white space of the content and puts emphasis on the image & image caption
#3 I'd like to be able to customize the font size in the image caption to match the H6 layout, Upper Case, Oswald, Font point 18
Thanks in advance!
Hi there,
Try this CSS:
.entry-content .wp-caption .wp-caption-text {
text-align: center;
background-color: #eaeae8;
padding-top: 5px;
padding-bottom: 5px;
font-size: 18px;
text-transform: uppercase;
font-family: "Oswald";
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Thanks Leo, that worked perfectly.
Marking as resolved, thanks.
No problem :)