WordPress / classic-editor

A plugin to restore the Classic Editor in WordPress.
https://wordpress.org/plugins/classic-editor/
Other
156 stars 81 forks source link

Image center align is not applied. #169

Closed mongdolappa closed 4 months ago

mongdolappa commented 2 years ago

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.

steamboatid commented 2 years ago

have you test it with another theme?

jordesign commented 1 year ago

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 commented 1 year ago

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;
}
azaozz commented 4 months ago

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.