[Resolved] Placing image caption to the left, changing font style

Home Forums Support [Resolved] Placing image caption to the left, changing font style

Home Forums Support Placing image caption to the left, changing font style

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2151795
    Daren

    Hi there. Is there a way of having the image caption to the left of the image, like in the example website?

    https://pitchfork.com/features/article/10055-how-to-buy-the-best-home-recording-studio-equipment-a-beginners-guide/

    It’s to the left, aligned with the bottom of the image, smaller grey italic font

    Thanks

    #2151801
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to a page on your site where you want to apply this style ?

    #2151809
    Daren

    Sure

    #2151871
    David
    Staff
    Customer Support

    Tricky without using custom HTML.
    But you can try adding this CSS:

    @media(min-width: 1025px) {
        .wp-block-image figure.alignleft figcaption {
            position: relative;
            left: calc(-100% - 20px);
            text-align: right;
            font-style: italic;
            color: #ccc;
        }
    }

    you can adjust the min-width to set what size screens it applies to.
    And it will only apply to images that have been left aligned

    #2152167
    Daren

    Thanks!

    #2152230
    David
    Staff
    Customer Support

    Sorry I missed the other requests, I updated the CSS above to include them

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