Archived topic
How to put the caption above the posts featured image
7 replies · Started by Roger on August 12, 2021
Hello,
How to put the caption above the post featured image?
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 :)
Thank you Ying!
You are welcome :)
Hi Ying,
How can I align text to the right and increase the font size?
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;
}
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
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?