• smittyatl

    (@smittyatl)


    In the editing console, captions for pictures look fine and are centered. But some of the captions are left-justified when looking at the blog. This happened once before and someone on Twitter gave me a tiny little code to put in settings. The code is still there, but some aren’t justified.

    The code I was given previously was

    }
    .wp-block-image .aligncenter>figcaption{
    text-align: center;
    }
    • This topic was modified 5 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • From what I can tell, the ones that are left aligned are galleries and not individual images

    Try adding this to your CSS

    .wp-block-gallery .blocks-gallery-caption {
        text-align: center;
    }
    Thread Starter smittyatl

    (@smittyatl)

    That was it! Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Centering of captions looks fine in console, but not on the blog’ is closed to new replies.