• Resolved NatCornAdmin

    (@natcornadmin)


    I am using the Twenty Thirteen theme and am trying to reduce the font size of the caption under each picture.

    I have reduced the font-size of the credit by inserting the following css into the CSS Stylesheet Editor in the WordPress dashboard;


    .media-credit {
    font-size: 9px;
    }

    I have tried to do the same with the caption using the following code but it seems to be ignored


    .wp-caption-text {
    font-size: 16px;
    }

    Am I barking up the wrong tree? Can you offer any help, putting me on the right road?

    Many thanks

    https://wordpress.org/plugins/media-credit/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pepe

    (@pputzer)

    A quick look at the Twenty Thirteen preview shows that your CSS code lacks specificity: The theme uses .wp-caption .wp-caption-text, which is more specific than your rule using only ..wp-caption-text.

    There are various ways to overcome that (using !important is one, adding more selectors to your rule another). However, this question would be more suited to one of the general support fora.

    Thread Starter NatCornAdmin

    (@natcornadmin)

    Thanks, that helped.

    Thanks for very swift assistance!

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

The topic ‘Adjusting font size of Caption using css’ is closed to new replies.