Fixing Squished Images in WordPress 5.5 Theme

After auto-updating to 5.5 my WordPress site got ugly from day one and I didn’t even detect it. All the images were distorted, the aspect ratio of the image was not being respected. Googling didn’t immediately reveal the problem, so here is how I finally quick-fixed it:

Go to Appearance / Customize / Additional CSS and paste in the following snippet:

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

Dear WP devs, would you pls be so kind and test before rolling out. Breaking changes like this should get more public attention.

About Grischa Ekart

Follow me on Twitter: @gekart. I am a trainer and consultant for AWS, Docker, Kubernetes, Machine Learning and all things DevOps.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.