Archived topic
Aligning captions individually
3 replies · Started by Philippe on March 13, 2023
Hi,
I Googled the issue but found nothing workable for me.
By default, my picture captions are center aligned.
.wp-block-image figcaption {
text-align: center;
It is generally ok, except when the picture needs not just a title underneath but a longer explanation. In that latter case, left aligned looks definitely better. How can I achieve that on an individual basis?
Thanks for your help,
Philippe
Hi there,
you would need some custom CSS.
And then apply the custom class to the image block.
1. Add this CSS to your site:
.wp-block-image.left-align figcaption {
text-align: left;
}
2. Select an Image Block, and in Advanced > Additional CSS Class(es) add: left-align
Groovy.
The nice thing for non-native speakers is that they have an excuse to speak funny. :)
:)
Glad to be of help!