Site logo

[Resolved] Aligning captions individually

Home Forums Support [Resolved] Aligning captions individually

Home Forums Support Aligning captions individually

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2565719
    Philippe

    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

    #2565853
    David
    Staff
    Customer Support

    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

    #2565885
    Philippe

    Groovy.

    The nice thing for non-native speakers is that they have an excuse to speak funny. 🙂

    #2566316
    David
    Staff
    Customer Support

    🙂

    Glad to be of help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.