Support » Fixing WordPress » Image Height issue after WordPress 5.5

  • Chintesh Prajapati



    I have an issue in my website. In WordPress version 5.4 website is working fine. But when I update WordPress to version 5.5 then all website image which is created by WordPress core image block those images are stressed.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Joy


    Hi @chinteshprajapati,

    I’m not sure what you mean by “images are stressed”. Is it possible to add a screenshot so others can better understand?



    I assumed “stressed” meant “stretched”.



    Use first in your css will fix it

    img {
    max-width: 100%;
    height: auto;

    Please note that using this CSS is going to override all images that had the height attribute set, as mentioned in my post on the support ticket. Specifically, any images added in Gutenburg that had the height altered via the Image dimensions setting will be overridden by implementing this “fix”.

    One quick way to overcome this would be to also add this style in your CSS .wp-block-image img { height: unset; }. But this is also wrong because it will reverse the “fix” on any image that didn’t already have the height set (the first problem returns). You’ll be required to manually update the height for each image in all of your posts.

    Best of luck.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image Height issue after WordPress 5.5’ is closed to new replies.