Make WordPress Core

Opened 7 years ago

Closed 3 years ago

Last modified 3 years ago

#40912 closed defect (bug) (invalid)

An image without a caption is not centered

Reported by: aeric325's profile aeric325 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.5
Component: General Keywords: close reporter-feedback
Focuses: Cc:


First observed the problem in 4.7.4, and now in 4.7.5.

An image with a caption is centered properly in the page, when that option is chosen.

An image without a caption is centered in the editor, but is not centered in the post.

The workaround is to place the image in a paragraph, and center that.

Note: The proper category for this report may be "Formatting". I'm just not sure what you mean when you use that term. (A glossary of categories would help!)

Change History (6)

#1 @joyously
7 years ago

What theme are you testing with, and does it have an editor-style file, or are you actually referring to the front end display of it?

#2 @azaozz
7 years ago

  • Keywords close added

Most likely caused by your theme. Try switching to one of the default themes (TwentySeventeen, TwentySixteen, etc.) and check again.

If still the same, could you copy the HTML around the image from the Text editor tab, and from the front-end, and paste the two snippets here (if different).

#3 @dd32
7 years ago

  • Keywords reporter-feedback added

#4 @hellofromTonya
3 years ago

  • Milestone Awaiting Review deleted

Hello @aeric325 ,

Welcome to WordPress Trac!

I'm closing this ticket as it's been 4 years since reporter feedback was requested and close added. If this is still an issue, please provide feedback.

#5 @hellofromTonya
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Closing this ticket. However, if the problem persists, please reopen and provide more information to help us further investigate.

#6 @aeric325
3 years ago

Thanks all. I somehow missed notifications when comments were added, and follow up was requested.
Only saw the "case closed" message.
But that's fine. I have a workaround.
And clearly it isn't a problem with a standard theme!
I have a 3rd party theme.
Maybe it's time to jetison that.

Note: See TracTickets for help on using tickets.