WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-caption issues (3 posts)

  1. JRiley21
    Member
    Posted 3 years ago #

    Hi. :)

    I'm trying to change the text properties on my image captions. I'm able to change the alignment, border, even the font weight (etc.) here:

    .wp-caption p.wp-caption-text

    However, it doesn't respond to actual text changes (e.g. font-size, etc) at all.

    Firebug shows me it's pulling that information from the CSS class:

    #content p, content li

    Unfortunately, to change those classes properties would force me to change the way all the text in the entire post displays. How can I change the caption text properties without changing the rest of the post?

    Any help would be greatly appreciated. :)

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    try:

    #content .wp-caption p.wp-caption-text { ... }

    or force your edits by adding !important - for instance:

    .wp-caption p.wp-caption-text { font-size: 20px!important; }

  3. JRiley21
    Member
    Posted 3 years ago #

    Worked like a charm. :) I appreciate your help!

Topic Closed

This topic has been closed to new replies.

About this Topic