Site logo

[Resolved] How to put the caption above the posts featured image

Home Forums Support [Resolved] How to put the caption above the posts featured image

Home Forums Support How to put the caption above the posts featured image

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1893791
    Roger

    Hello,

    How to put the caption above the post featured image?

    #1893827
    Ying
    Staff
    Customer Support

    Hi Roger,

    Try this CSS:

    .featured-image .wp-caption.thumb-caption {
        display: flex;
        flex-direction: column;
    }
    
    .featured-image .wp-caption.thumb-caption p {
        order: -1;
    }

    Let me know 🙂

    #1899047
    Roger

    Thank you Ying!

    #1899184
    Ying
    Staff
    Customer Support

    You are welcome 🙂

    #1912615
    Roger

    Hi Ying,

    How can I align text to the right and increase the font size?

    #1912623
    David
    Staff
    Customer Support

    Hi there,

    change Yings CSS to:

    .featured-image .wp-caption.thumb-caption {
        display: flex;
        flex-direction: column;
    }
    
    .featured-image .wp-caption.thumb-caption p {
        order: -1;
        text-align: right;
        font-size: 16px;
    }
    #2437773
    Jonathan

    Hi, how could we align the caption vertically on the featured image?
    like this: https://ibb.co/55qmSB3

    note: I’m using this snippet to generate the caption around the featured image
    https://gist.github.com/diggeddy/5f7c3a4584a8beb51febc9c4f33d6c5c

    #2437796
    Ying
    Staff
    Customer Support

    Hi Jonathan,

    Can you open a new topic and using the private info field to attach your post link where we can see the featured image and caption?

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