New Topic

changing size of image caption

Home › Forum › Customization › changing size of image caption

Tagged: , ,

This topic contains 8 replies, has 2 voices, and was last updated by  StartupWP 2 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1382

    emfarrellsf
    Member

    Hi, I’m getting started with the free version of the StartUp theme, and would like to decrease the font size for captions below our images. I tried to find this in the CSS style sheet using Firebug but it’s not clear what I need to change (assuming I can). Thanks for your help!
    (If you need it, here’s the site URL: http://southplainfieldsmallfry.com/

    #1383

    StartupWP
    Support

    Try:

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

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

    #1384

    emfarrellsf
    Member

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

    #1385

    StartupWP
    Support

    You’re welcome.

    #2561

    emfarrellsf
    Member

    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
    Support

    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
    Member

    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
    Support

    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
    Support

    Clear (ignore this reply)

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.