Image caption font size not showing correctly

  • Author
    Posts
  • #2111552

    Hi! I’m using the Untitled theme and got a bit frustrated with how the image captions aren’t working.

    When I’m editing the post on the Dashboard, the captions are perfect! They’re in this light gray box with the photo and the font size is just right.

    But when I publish it or even just preview the post, the font size for the caption blows up so that it looks really ugly since it becomes the same size as the other text in the post.

    Is there a way to fix this?

    The blog I need help with is feelingenvironmentalist.wordpress.com.

    #2111645

    lastnode
    Member

    Hi! Unfortunately, this looks to be the default design/behaviour of the Untitled theme. What you see while editing the post on your Dashboard has got little to do with how the post looks on your blog, as the latter is totally dictated by the design of the theme you have chosen.

    One way to fix this would be to grab the Custom CSS upgrade and include this quick CSS fix:

    .wp-caption .wp-caption-text {
    font-size: 0.6em;
    }

    A far less elegant solution is wrap every caption in this code using the Text Editor

    <span style="font-size:.6em;">Your caption here.</span>

    But that’s not really sustainable in the long run. For example, if you change themes or even just decide to italicise all your captions, you will have to go back and change each caption in each post.

    Hope this info helped. Good luck with your CSSing! :)

    #2111647

    lastnode
    Member

    Sorry, tiny mistake! The first code block above should read:

    .wp-caption .wp-caption-text { font-size: 0.6em; }

    (The br tags are unnecessary and were the result of a bad paste!)

    #2111777

    Thanks for responding! This was really helpful. I ended up changing themes in the meantime since I haven’t fully decided yet on which one to use.

The topic ‘Image caption font size not showing correctly’ is closed to new replies.