Gallery Caption

Hello,
Is there a way to customize the size, color and font-style of the caption in a photo gallery?

EX: https://www.resistthemundane.com/7-most-romantic-paso-robles-activities/
Scroll down to last gallery of the post. You’ll see that the gallery caption are all pretty large.

Thank you,
Patty

Hello Patti

at the bottom i can only see Other Nearby Places to Visit images, are you asking about them?

Captions of galleries in the middle is already modified by this CSS code:

.wp-block-image figcaption {
margin-top: .5em;
margin-bottom: 1em;
color: #ae74c3;
text-align: center;
font-size: 9px;
}

Hello,

Yes, I am talking about that Gallery at the end.

The CSS code you mentioned only customizes the caption in single images. But not on the Gallery images. You can clearly see the difference on the webpage I sent as an example.

Hello Patty

galleries at the bottom are from the Jetpack gallery, you can use this code to change their font size:

#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
font-size: 12px;
}

Thank you, Noda but that didn’t work. It didn’t change anything.

Hello Pati

12px is default font size, you have to change it in the code and the apply it :slight_smile:

Ok, i see you already did it

Patty, please note, 9 px font size is very hard to read and very bad for user experience, the minimum font size for comfortable reading is 12 px