• Resolved avabusiness

    (@avabusiness)


    My client has reported that sometime within the last few weeks images in the page referenced above, as well as others, that were created quite a while ago and had images properly centering, are no longer centering. They are properly set to center in the editor.

    Inspecting the element:

    .entry-content .aligncenter:not(.wp-block-gallery), div.aligncenter:not(.wp-block-gallery), figure.aligncenter:not(.wp-block-gallery) {
    clear: both;
    margin-left: auto;
    margin-right: auto;
    }

    I have tried putting the following CSS in the additional CSS with no results:

    .entry-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    }

    WordPress version 6.4.2

    Theme version 1.8.4

    Site uses Classic Editor plugin as well as Site Origin page builder plugin and issue is still there when plugins are deactivated.

    Appreciate a fix.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi, @avabusiness

    We suspect a recent WordPress update caused this. Add the following code to Appearance -> Customize -> Additional CSS:

    .entry-content p:has( img.aligncenter ) {
    	text-align:center;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Images not centering’ is closed to new replies.