Archived topic
caption aligned vertically on the featured image
1 reply · Started by Jonathan on November 29, 2022
Viewing posts 1–2 of 2
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
Thanks
Hi Jonathan,
Try adding this CSS:
p.wp-caption-text.thumb-caption-text {
position: absolute;
top: 0;
right: 0;
transform: translateY(-90%) rotate(270deg);
transform-origin: bottom right;
background: hsla(0,0%,100%,.35);
padding: 10px;
opacity: 1;
}
This archived topic is closed to new replies.