• Hi, I have a strange thing here. If I configure WebP express to alter the html, it alters it incorrectly on 4 pages. It adds a double <picture> element, causing the second one to show on the website.

    <picture>
    <source srcset="https://www.villa-ladouceprovence.nl/wordpress/wp-content/webp-express/webp-images/doc-root/wordpress/wp-content/uploads/Villa-La-Douce-Provence-Ornament-350x94.png.webp" type="image/webp">
    <picture>
    <source srcset="https://www.villa-ladouceprovence.nl/wordpress/wp-content/webp-express/webp-images/doc-root/wordpress/wp-content/uploads/Villa-La-Douce-Provence-Ornament-350x94.png.webp" type="image/webp">
    <img src="https://www.villa-ladouceprovence.nl/wordpress/wp-content/uploads/Villa-La-Douce-Provence-Ornament-350x94.png" alt="Logo de la Villa La Douce à Lorgues en Provence<mq:ch val=" class="webpexpress-processed">
    </picture>" title="Logo de la Villa La Douce à Lorgues en Provence<mq:ch val="" />" class="header-logo webpexpress-processed">
    </picture>

    This website uses the Divi theme, the logo is added in a global module, so the same on every page. The site is translated with WPML.
    – The French home page (and 3 other french pages) show the issue
    – The Dutch, English and German pages are correct

    Any idea what the problem is?

    I can easily fix it by disabling the ‘alter html’ option, but I though you might want to have a look first.

    Thanks
    JP

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author rosell.dk

    (@roselldk)

    I will not have time to dig into it today, but I have grabbed the HTML so you can disable the alter html option.

    Ok, let me know if you want to see it live again.

    I saw it first with 0.14.3 and also with 0.14.4. Not sure if it also happened with older versions

    Thanks
    JP

    Plugin Author rosell.dk

    (@roselldk)

    Now that Alter HTML is disabled, I can see that the html is problematic to begin with. It has attributes containing special entities such as quote. I guess that this is what makes the replacement hiccup

    It looks like this:
    <img src="https://www.villa-ladouceprovence.nl/wordpress/wp-content/uploads/Villa-La-Douce-Provence-Ornament-350x94.png" alt="Logo de la Villa La Douce à Lorgues en Provence<mq:ch val=&quot;&quot; />" title="Logo de la Villa La Douce à Lorgues en Provence<mq:ch val=&quot;&quot; />" class="header-logo" />

    • This reply was modified 6 years, 11 months ago by rosell.dk.

    Ah yes, it’s fixed now. The translation of the image alt text came back wrong from the translator. I removed the incorrect characters and enable alter html again and now it looks good.

    Thank you for checking and your help!

    JP

    Plugin Author rosell.dk

    (@roselldk)

    You are welcome

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Double element added’ is closed to new replies.