Center Caption under Image in Resonar theme using CSS

  • Author
    Posts
  • #2458028

    phyou
    Member

    Can I use CSS to center captions under images and gifs in the Resonar theme? If so, how?

    The blog I need help with is tonywingard.net.

    #2458131

    g471n
    Member

    Hi Tony

    Try adding this line of custom CSS.

    .entry-content h3 {
        text-align: center;
    }

    To add custom CSS

    Select Appearance > Customize > CSS from your Admin Dashboard and enter the custom CSS there.

    You need to be on the WordPress.com Premium Plan for custom CSS to save.

    #2458175

    phyou
    Member

    That centered the h3 heading I had under the video.
    I meant that I wanted the captions (gray text) with the images and gifs to be centered under them. Any thoughts?

    #2458178

    g471n
    Member

    This should do it.

    .wp-caption-text {
        text-align: center;
    }
    #2458181

    phyou
    Member

    YES!! Thank you very much. Worked like a charm!

    #2458185

    g471n
    Member

    That’s great. Thanks for the feedback.

The topic ‘Center Caption under Image in Resonar theme using CSS’ is closed to new replies.