Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Captioned image not centered after update to WordPress 4.9

Discussion in 'Misc WordPress Requests' started by paulwpxp, Nov 16, 2017.

  1. paulwpxp

    Guest

    Reply To: Captioned image not centered after update to WordPress 4.9, by paulwpxp

    Are you positive this just happened after 4.9 update?

    I can see in the html source that the alignment problem is not tied to caption, but the class="aligncenter" code is missing from the image’s tag.

    Some images are bigger (wider) than content width and that’s why it appears to be centered even if it doesn’t have class="aligncenter" code in image’s html tag.

    To fix this, we have to go to each image and assign that aligncenter class via WordPress image management, or if you are comfortable writing code just go right in the code and add it (switch to Text mode editing, not the Visual one).

    Reply To: Captioned image not centered after update to WordPress 4.9
     
    #1

Share This Page

Web Hosting