• Resolved lauritasita

    (@lauritasita)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    This functionality comes from WordPress itself. You need to use the alignment buttons on the toolbar when aligning images, it should work properly then.

    Thread Starter lauritasita

    (@lauritasita)

    I do use the toolbar to align the image. The problem only happens with captions when trying to center the image.

    I work around it in text mode by defining the image between two div tags. If I don’t do this, the image defaults to the left, but publishes correctly.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Center Image alignment issue after adding a caption’ is closed to new replies.