classic-editor icon indicating copy to clipboard operation
classic-editor copied to clipboard

Image center align is not applied.

Open mongdolappa opened this issue 4 years ago • 3 comments

I aligned the image to the center. However, in the actual page, the image is only aligned to the left. No matter how many times I test it. Please check it once. My theme is sinatra.

mongdolappa avatar Oct 28 '21 12:10 mongdolappa

have you test it with another theme?

steamboatid avatar Nov 04 '21 14:11 steamboatid

I've just tested this - and it occurs in newer Block Themes, but not in older themes. It seems themes need to include the CSS styles to make sure the image is aligned on the front end.

jordesign avatar Jul 31 '23 01:07 jordesign

For anyone coming here looking for a solution until this is resolved - it looks like adding this CSS code will help

/* Center Align Images */
img.aligncenter {
    clear: both;
    display: block;
    float: none;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

jordesign avatar Aug 01 '23 01:08 jordesign

Yea sounds like this is a problem with the (old) Edit Post screen, not with this plugin. Classic Editor plugin only enables the use of the old editor, it doesn't affect how it works.

If this still happens and has been tested with all other plugins disabled, and it seems to be an old bug on the Edit Post screen, please feel free to open a Trac ticket with the full description and how to reproduce it.

azaozz avatar May 10 '24 21:05 azaozz