Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
891 stars 355 forks source link

Twenty Fifteen: Image Captions Not Centered #802

Closed aamills closed 3 years ago

aamills commented 5 years ago

Steps to replicate

When adding an image to a post in twenty fifteen, the image caption looks centered in the editor, but when viewed live, it's pushed to the left.

Result

While the image caption looks centered in the editor view, once published and viewed live, the caption is shown to the bottom left of the image.

Live view example: TwentyFifteenImageCaptions

Expected

I expected what I saw created in the editor and the location of the caption to be replicated on the live site.

Editor View: TwentyFifteenEditorView

Originally reported by user: #1388954-hc Then replicated/tested on my own site (example screenshots)

In the chat, we gave them the following CSS as a work around:

.wp-caption.aligncenter .wp-caption-text {
  text-align: center;
}

Other notes

Tested on another theme (Lovecraft), and captions were centered as seen in the editor.

pbking commented 3 years ago

I was not able to reproduce this. Captions appear centered in both the editor and the view for this theme. Alignment is correctly being applied by the block. Likely this has been addressed in Gutenberg since this was reported.

image

Closing this item. Though if the problem persists then please reopen.