Archived topic
using an img alternate for webp
3 replies · Started by Anthony on January 1, 2021
I have enabled webp uploads and thumbnail view in my media library. and i would like to put webp images on my site. the problem i am facing is that i cant find documentation for creating and alternate img for my images without hardcoding <picture></picture> so this would be difficult to edit the main page img using the exsiting coding in generate blocks. is there a simple way to do this or would i need to rewrite the entire hmtl for that block with the webp img?
mrslothconsulting.com is the website
Hi there,
i wouldn't recommend doing this manually as it means you would have to write a lot of HTML for each and every image you add. There are plugins like these that automatically do this for you:
https://en-gb.wordpress.org/plugins/webp-express/
https://wordpress.org/plugins/webp-converter-for-media/
I have seen users running webP Express - the other plugin i have not seen on a live site...
Thanks I will have a look!
You're welcome