Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image center align is not applied. #169

Closed
mongdolappa opened this issue Oct 28, 2021 · 4 comments
Closed

Image center align is not applied. #169

mongdolappa opened this issue Oct 28, 2021 · 4 comments

Comments

@mongdolappa
Copy link

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
Copy link

have you test it with another theme?

@jordesign
Copy link

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
Copy link

jordesign commented Aug 1, 2023

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
Copy link
Contributor

azaozz commented May 10, 2024

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 azaozz closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants