Conversational Forms | Welcome Screen Image Stretched

Dropping this here in case anyone runs into it:

Ran into a weird issue with the Conversational Forms add-on. When adding the Welcome Screen image it would render stretched to nearly 1500px, no matter the dimensions of the image that was uploaded.

After doing some digging around, it seems like a recent WordPress update around 6.7.1 was adding this to the page style tag:

img:is([sizes=”auto” i], [sizes^=”auto,” i]) { contain-intrinsic-size: 3000px 1500px }

Found this thread on the wordpress.org support forums:
Weird style code in my website | WordPress.org

And added this snipped to my child theme:

add_filter('wp_img_tag_add_auto_sizes', '__return_false');

That seemed to take care of the issue. It does look like there was a solution from the Core team as well, but the above was quick, worked for me, and didn’t seem to affect anything else.

Leaving this here in case anyone else runs into it!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.