Archived topic
Changing image caption font size
12 replies · Started by Pops on August 11, 2022
Hi,
Is it possible to edit/change font size on captions for images. I.e., make them larger, perhaps in a different font/
Is that possible at all?
Thank you
Kind regards
Hi Pops,
What Image Block are you using? Is it the WordPress one or from GenerateBlocks? Can you provide a link to an image with a caption?
Hi,
I am using the grid for 3 pics (as in the PIXEL theme.
Link in the private info box.
Thank you
In Appearance > Customize > Typography, add a new typography. Set the target to Custom, and this as the selector: figure.wp-block-image figcaption
Now, you can modify the font of WP image captions.
Thanks for this. i have done it but don’t see any option to resize…
Kind regards
Got it!!! Lol, Thank you.
Brilliant!!
You’re welcome Pops!
Sorry to repopen this to ping but….while this worked well on one site, it doesn’t on another.
Not sure why as its the same the same theme, same block, everything.
Kind regards
Hi there,
there could be a few reasons. For example WP updated the HTML of the Image blocks in a more recent release. So there can be old html and new html selectors.
Do you have a link to a page where this isn't working and i can take a look?
Thank you. :)
Link in private area. Kind regards
Use this CSS selector: .wp-block-image figcaption
Thank you so much.
As always, appreciated:)
Glad to be of help.