[Resolved] Article Images caption not centered.

Home Forums Support [Resolved] Article Images caption not centered.

Home Forums Support Article Images caption not centered.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1979103
    Atty

    Hello,

    when I insert an image with its caption, the caption remain at all left and it is not centered. And is also weird, it seems written in a small column. How to fix it?

    I’ve added this code in custom CSS:

    .wp-block-image figcaption {
        text-align: center !important;
    }

    But it doesn’t work at all (with or without !important)

    Thank you in advance!

    Picture: Problem on caption

    #1979156
    Ying
    Staff
    Customer Support

    Hi Atty,

    You have this CSS which is causing the issue:
    https://www.screencast.com/t/zy3cGiW8G

    Can you disable your cache plugin so we can see where the code is coming from?

    Let me know πŸ™‚

    #1979198
    Atty

    Hello Ying,

    done it, cache plugin disabled πŸ™‚

    #1979224
    Ying
    Staff
    Customer Support

    Well, it’s added in the WP 5.8.1, not sure what their purpose of adding this line of CSS…

    Try this CSS to override it:

    .wp-block-image .aligncenter>figcaption, .wp-block-image .alignleft>figcaption, .wp-block-image .alignright>figcaption {
        display: block;
    }

    Let me know how it works πŸ™‚

    #1979242
    Atty

    It works perfectly, thanks Ying, you are my myth. πŸ™‚ πŸ™‚

    #1979244
    Atty

    Solved πŸ™‚ Thanks again.

    #1979269
    Ying
    Staff
    Customer Support

    You are very welcome!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.