• Resolved woomigrating

    (@woomigrating)


    Hi,

    When activating shortpixels webp deliverance feature through the <PICTURE> tag syntax, the product variation selector stops changing the image associated with the variation.

    I believe the problem is that the source tags are not updated with the variation selector change…

    <picture src"https://mydomain.com/1.jpg" srcset="https://mydomain.com/1.jpg 600w">
    <source srcset="https://mydomain.com/1.jpg 600w" type="image/webp">
    <source srcset="https://mydomain.com/1.jpg 600w" type="image/jpeg">
    <img src"https://mydomain.com/1.jpg" srcset="https://mydomain.com/1.jpg 600w">
    </picture>

    …becomes…

    <picture src"https://mydomain.com/2.jpg" srcset="https://mydomain.com/1.jpg 600w">
    <source srcset="https://mydomain.com/1.jpg 600w" type="image/webp">
    <source srcset="https://mydomain.com/1.jpg 600w" type="image/jpeg">
    <img src"https://mydomain.com/2.jpg" srcset="https://mydomain.com/2.jpg 600w">
    </picture>

    ….which means the browser still displaying the 1.jpg since that’s what it sees in the <source> tag.

    Would it be possible for you to add this feature in the free and/or the pro version?

    Regards
    woomigrating

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor codeixer

    (@codeixer)

    Hi ,
    please make sure the images are not wrapped with the <PICTURE> tag.
    most probably it’s come from other plugins. might be a cache plugin.
    so you can disable that then it will work.

    Thread Starter woomigrating

    (@woomigrating)

    After further investigation I believe the issue is actually caused by the Shortpixel plugin and not yours.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility issue with picture tag (shortpixel)’ is closed to new replies.