[Support request] Captions not visible

Home Forums Support Captions not visible

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1238603
    Swadhin

    Hi there,

    I have noticed that the captions of my blog are not visible as captions and rather as normal text. For example, you can check this post and see the first image to get a live example.

    I have had this code from the beginning of using my theme (for center aligning the caption and it is still there, it also doesn’t have any difference when I remove it):

    figcaption.wp-caption-text {
        text-align: center;
    }

    Thanks,

    -Swadhin

    #1239255
    David
    Staff
    Customer Support

    Hi there,

    yeah WP and its updates has changed some of the markup so instead try this:

    .wp-block-image .aligncenter>figcaption {
        text-align: center;
        font-size: 12px;
    }

    I added font-size in case you needed to adjust that as well

    #1239497
    Swadhin

    Hi David,

    I worked, thank you!

    But I somehow feel (I may be wrong too!) that the caption now feels as if a different element or normal text. Please check here is a site that has the original caption before WP was updated and here is one that is using the new code).

    Do you not see a bit of a gap between the image and caption in the new one than the one with old code?

    P.S. What else “markups” were affected by the new update? I would appreciate it if you could point me to a list because I want to correct them even if I haven’t noticed them in the site yet.

    -Swadhin

    #1239693
    David
    Staff
    Customer Support

    Try this:

    .wp-block-image .aligncenter>figcaption {
        text-align: center;
        font-size: 75%;
        opacity: 0.8;
        margin-top: 0;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.