• Resolved dla23

    (@dla23)


    Hi
    At present I haven’t moved to Gutenberg yet.
    When editing a page & adding an image via ‘Add media’ I’m puzzled by the background color of the caption.
    Where is it derived from?
    I’ve checked every option to do with colors included the theme (Parabola) but the color of the image caption is nowhere to be found.
    Any suggestions?

    • This topic was modified 4 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Requests and Feedback topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • @dla23 I don’t think it is possible to customize the color of that caption in Gutenberg. I think the theme provides the default color, but I understand there is no option you could change. Are you familiar with CSS? If so, you could probably target that caption with a rule like .wp-block-image figcaption { color: #000; }

    Thread Starter dla23

    (@dla23)

    Thanks for you reply.
    Actually, (as I said) I’m not using Gutenberg yet.
    But it’s odd as I have a test site and I’ve loaded the same theme onto that.
    Guess what? The background color of captions is a different color!
    Oh well, I’m none too familiar with CSS so I’ll either stick with it or I’ll record my carefully chosen colors, uninstall then reinstall the theme and, one by one change the colors back to my chosen ones.

    @dla23 To customise colour of the caption, you need to do the following:
    Go to Settings -> Customise (Themes pane) -> Additional CSS
    Copy-paste this css snippet into the text area:

    .wp-caption p.wp-caption-text
    {
       background-color: #ff00ff;
    }

    Change #ff00ff to the color you need.

    Thread Starter dla23

    (@dla23)

    Excellent! That works just fine.
    Thanks for your help.

    @dla23 You are welcome. I’m glad we were able to help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Image caption background color’ is closed to new replies.