Why is my photo caption CSS being overridden?

  • Unknown's avatar

    Hi there,

    I’m having an issue with my photo captions. Despite having adjusted my CSS to have them come through in basic text, each one is coming through italicized. My exact CSS entries for this are below:

    .wp-caption {
    font-size: 85%;
    font-style: normal;
    text-align: center;
    }

    .wp-caption-text {
    font-style: normal;
    }

    There’s nothing in here that mentions italics, so I’m a little confused as to why they’re coming out this way. Any ideas or suggested remedies?

    Thanks.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Howdy!

    It looks like your custom CSS is being overrided by a rule from another class:

    Try replacing this bit of code…

    .wp-caption-text {
    font-style: normal;
    }

    … with this:

    .wp-caption .wp-caption-text {
    font-style: normal;
    }
  • Unknown's avatar

    That did the trick – thanks much!

  • The topic ‘Why is my photo caption CSS being overridden?’ is closed to new replies.