admin管理员组文章数量:1317909
In my WordPress site 5.5.1 version so, we uploading jpeg images so we want to page speed for upload webp images. Webp images are not supported by a few browsers. so how to switch images format like this in WordPress
In my WordPress site 5.5.1 version so, we uploading jpeg images so we want to page speed for upload webp images. Webp images are not supported by a few browsers. so how to switch images format like this in WordPress
Share Improve this question edited Oct 29, 2020 at 9:29 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Oct 29, 2020 at 6:13 user196780user196780 1 1- I'd start by looking at webp plugins and see if any of these will replace your featured image with webp for you. If not, you'll probably have to edit your theme to add support I'd think. – Rup Commented Oct 29, 2020 at 9:01
1 Answer
Reset to default 0You should add fallback to the webp img tag. In the attached link are some strategies, most relevant is this:
<picture>
<source srcset="img/awesomeWebPImage.webp" type="image/webp">
<source srcset="img/creakyOldJPEG.jpg" type="image/jpeg">
<img src="img/creakyOldJPEG.jpg" alt="Alt Text!">
</picture>
Source: https://css-tricks/using-webp-images/
本文标签: post thumbnailsHow to use ltpicturegtltpicturegt tag in featured image
版权声明:本文标题:post thumbnails - How to use <picture><picture> tag in featured image 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742029272a2416137.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论