Change caption text inYoko theme

  • Unknown's avatar

    How can I customize the font in the captions under the images? I want it to be italic and smaller:

    caption {
    font-style: italic;
    font-size: 11px;
    }
    This is obviously not working! Is it a class or an id? – but the id seems to be different for each image? I have upgraded in order to make this small adjustment. Also I wish to reduce the gaps between lines … somehow? Thanks. Gaylene

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

  • Unknown's avatar

    It’s a class: an id is for a single specific element, a class is for a type of element (for example, your sidebar has an id, but the widget titles are a class).

    Add this:

    .wp-caption p {
        font-size: 90%;
        font-style: italic;
        line-height: 1.4;
        margin: 0 5px;
    }

    Change the percentage to adjust the size, change the line-height value to adjust the distance between lines.
    I’ve also added a margin rule, because captions on Yoko are a bit wider than the image, and I don’t think that’s correct.

  • Unknown's avatar

    That’s great, Thanks.

  • The topic ‘Change caption text inYoko theme’ is closed to new replies.