Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #729135

    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

    #729264

    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

    #729268

    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

    #729738

    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

    #729791

    That worked perfect! Thank you so much!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Link Text Background When Adding Image To BLOG Post’ is closed to new replies.