TranslatePress Image Translation is not compatible with WP Rocket Lazyload
Describe the bug TranslatePress has a feature to translate images, which allows one to choose a different image in each language. https://translatepress.com/translate-images-in-wordpress/
When our Lazyload for images is optimizing the images, the TranslatePress image replacement is not working.
Full image here: https://i.imgur.com/GzSfMxd.png
To Reproduce Steps to reproduce the behavior:
- Using TranslatePress
- Translate an image an image, choosing a different one for each language
- Enable Lazyload for images in WP Rocket
- See the image not being replaced
Expected behavior We should find a way to be compatible with this feature or exclude those images from being Lazyloaded
Screenshots
Full image here: https://imgur.com/Uo5ftgB
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Ticket 1: https://secure.helpscout.net/conversation/2821551478/535578?viewId=2683093 Ticket 2, old: https://secure.helpscout.net/conversation/2686418438/508717
It's incompatible with CDN rewrites too:
- https://group-onecom.slack.com/archives/C08F4M3BBJL/p1747227899724959
- https://secure.helpscout.net/conversation/2937651393/560432?viewId=1213662
It's incompatible with the WPR Webp Add-on too: https://secure.helpscout.net/conversation/3106995781/592317?viewId=7406897