Site logo

Archived topic

Image Caption Text and Background Colors?

1 reply · Started by Shane on October 1, 2015

Viewing posts 1–2 of 2

Is there a way to change the Image Captions to a different color than the default white text on transparent dark gray background? Can I adjust the level of opacity?

Thanks!

Hi there,

Absolutely! You can use some simple CSS:

.wp-caption .wp-caption-text {
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
}

You can change the background to whatever you like - adjusting the 0.5 will adjust the opacity (0.5 being 50%).

The color is currently white (#FFF) which you can change also.

Let me know if you need more info :)

This archived topic is closed to new replies.