Optimole breaks srcset/sizes | WordPress.org

[ad_1]

I noted an issue on Optimole optimization within the Gutenberg Image block with a width and height set on the image block… the image was pixellated, and when I set it to exclude the optimization within Optimole settings, the img tag has no srcset. Now with Optimole enabled they are like:

<figure class="wp-block-image size-full"><a href="https://https://projectdmc.org/..."><img decoding="async" width="344" height="110" src="https://https://projectdmc.org/....jpg" alt="" class="wp-image-64683"></a><figcaption class="wp-element-caption" style="cursor: pointer;">caption</figcaption></figure>

With Optimole enabled – even though I have it set to exclude, I am seeing no WordPress-generated srcset/sizes as before:

<figure class="wp-block-image size-full is-resized"><a href="https://https://projectdmc.org/...."><img decoding="async" loading="lazy" src="https://https://projectdmc.org/....jpg" alt="" class="wp-image-64680" width="716" height="225" srcset="https://projectdmc.org/..." sizes="(max-width: 716px) 100vw, 716px"></a></figure>

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer