Center Image alignment issue after adding a caption
-
I found a temporary solution for this, but I may report this to the TinyMCE plugin author if this isn’t a theme issue just in case anyone else is having this problem. I’m pretty sure I didn’t have this issue a few years ago, but I can’t remember when this started. It could have been a WordPress update. This is happening in two of my websites. It must have spent hours trying to figure out a css solution, and it’s probably not worth it at this point unless someone can figure it out.
The issue only happens in the WordPress visual editor:
1. If you upload an image from the media library, align it centered, and then edit the image to add a caption.
2. The image will then default to the left in the visual editor, but it will display correctly after the post is published.
3. If you want to display it correctly in the visual editor, I just wrapped the image in a div tag and then center align the div. It published correctly. Left and right alignment with caption is fine.
The topic ‘Center Image alignment issue after adding a caption’ is closed to new replies.