Webp and AdRotator
-
Hi,
I believe there is an incompatibility between your ShortPixel Image Optimizer Plugin and the AdRotator Plugin which is used to manage advertisements on the website.
AdRotator uses images from wordpress “media”, Shortpixel correctly optimizes these images and creates the webp copy.
In ShortPixel settings I activated WebP Images> Using the <PICTURE> tag syntax> Only via WordPress hooks. This appears to work for all images on the site except those served by Adrotator.
Looking at the code that is used:
<picture class="sp-no-webp"> <source srcset="https://www.mywebsite.com/wp-content/uploads/2020/05/Nemko-Italy-web-banner-300x250-v3.jpg.webp" type="image/webp"> <source srcset="https://www.mywebsite.com/wp-content/uploads/2020/05/Nemko-Italy-web-banner-300x250-v3.jpg" type="image/jpeg"> <img src="https://www.mywebsite.com/wp-content/uploads/2020/05/Nemko-Italy-web-banner-300x250-v3.jpg" class="sp-no-webp" srcset="https://www.mywebsite.com/wp-content/uploads/2020/05/Nemko-Italy-web-banner-300x250-v3.jpg"> </picture>
The issue seems to be that the link to the webp image has extension .jpg.webp, while the real image has only .webp (without .jpg).
Is there any way to solve?
- The topic ‘Webp and AdRotator’ is closed to new replies.