Tagged: background color, enfold, image text, link text
Hello,
Often when I am writing blog posts, I will upload an image where I will add “link text” or “alt text” to the image. I notice that when I do that, it changes the look of the image slightly. It will add a black line around the image and the text, making it boxed off. I like that, BUT is there a way to change the background of the box? I hope that makes sense. FOr example, if the image has the black line around it and everything inside the black line it white, could i change the color of what is inside the box? Like a light grey color or something. I am asking because that way it will make the text that is attached to the image way more noticeable.
Thanks in advance!
-E
Hey EricMarks,
Is it the colour of the border you want to change? If so please try this in Quick CSS:
div .wp-caption {
border-color:red !important;
}
Best regards,
Rikard
Hi Rikard,
Sorry it’s hard to explain. I don’t want the border color changed, I want the background color inside of the border changed. So I am fine with the black border as long as the inside if the border is a different color other than white.
Thanks!
Eric
Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
#top .wp-caption img, .wp-caption-text{
background:gold;
}
Best regards,
Vinay
That worked perfect! Thank you so much!