New Topic

changing size of image caption

Home › Forum › Customization › changing size of image caption

Tagged: , ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1383
    StartupWP
    Keymaster

    Try:

    p.wp-caption-text {
      font-family: arial;
      font-size: 13px;
    }

    https://startupwp.com/topic/customizing-your-theme/

    #1384
    emfarrellsf
    Participant

    Thanks, that did the trick! (I’m sure I’ll have more questions…. appreciate your quick support!)

    #1385
    StartupWP
    Keymaster

    You’re welcome.

    #2561
    emfarrellsf
    Participant

    Hi again! I’m having problems with the caption text size again. The original CSS changes did work as suggested (I set up a child theme CSS file), but the text size (and font type) has reverted back to normal paragraph style. Has the theme coding changed?

    #2563
    StartupWP
    Keymaster

    It looks like the p.wp-caption-text style is missing.

    Try running your child theme code through this tool to check for errors:

    http://jigsaw.w3.org/css-validator/#validate_by_input

    #2565
    emfarrellsf
    Participant

    It says the code is validated (this is in the child css file. And it worked before (when I first asked this question and changed the CSS as suggested). I’m wondering if the child css might not be overriding the styles.css for the theme?

    Later… hmm. I added the p.-caption-text code to the original styles.css and this seems to work. So still wondering if my child CSS file is somehow not working.

    #2571
    StartupWP
    Keymaster

    You’re probably right that it’s a specificity issue and it’s not overriding.

    You could try:

    #content p.wp-caption-text {
      font-family: arial;
      font-size: 13px;
    }
    #2960
    StartupWP
    Keymaster

    Clear (ignore this reply)

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.