Archived topic
Webp Express and Generate Press not working
5 replies · Started by Paul on September 21, 2022
I moved over to Generate press and added Webp Express to make sure images were being converted and also the HTML was being changes to <picture>.
On sites where I am not using GeneratePress (currently migrating them over) Webp Express works fine. However, not on the Generate Press sites. All sites are on the same server with the same setup, only difference is the theme.
Any ideas?
Hi there,
Can you explain a bit more about how it doesn't work on GP?
Any examples?
Let me know!
Sure
So in GP an image appears as this in HTML...
<img width="350" height="197" src="https://www.domain.com/wp-content/uploads/2022/09/image-350x197.jpg" alt="blah" />
In the other theme it appears as:
<picture><source srcset="https://www.domain.com/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2022/09/image-480x360.jpg.webp" type="image/webp">
</picture>
Same settings, different theme.
Hi Paul,
GeneratePress shouldn't hinder a plugin for image optimization to work. There's no code in GP that should cause this. Can you try using a Theme like WordPress theme - TwentySeventeen? Can you also reach out to the support of this plugin and see if they have an insight regarding this?
Can confirm it only seems to be GP that's this is happening on. I have already posted a query in the support for Webp Express but had no response so I have just changed webp plugins and it's working now.
I see. Glad it's working now with a different plugin.