Title: Double element added
Last modified: June 18, 2019

---

# Double element added

 *  Resolved [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/)
 * 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
    -  This topic was modified 6 years, 11 months ago by [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdouble-element-added%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/#post-11649113)
 * I will not have time to dig into it today, but I have grabbed the HTML so you
   can disable the alter html option.
 *  Thread Starter [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/#post-11649458)
 * 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](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/#post-11650225)
 * 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](https://wordpress.org/support/users/roselldk/).
 *  Thread Starter [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/#post-11650353)
 * 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](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/#post-11650438)
 * You are welcome

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

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

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/double-element-added/#post-11650438)
 * Status: resolved