开发者 |
ryanshoover
cousett |
---|---|
更新时间 | 2017年2月17日 02:30 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 4.7.2 |
版权: | GPLv3 |
版权网址: | 版权信息 |
srcset
attribute of your featured image. Vistors' browsers will automatically download the best image for the size of their screen.
This plugin works by filtering the wp_calculate_image_srcset
function and changing the url for all screens under 980w to the mobile featured image. 980w is a reliable breakpoint between the iPhone 6+ and the iPad, two common measures for when a mobile image would be needed.
mobile-featured-image
folder to your /wp-content/plugins/ directoryNope! We'll only add in a mobile version if you've added one to the post.
Nope! The mobile image is added to the srcset attribute of the featured image. The visitor's browser will download only the image they need. Leverage responsive images and speed up mobile experiences!
WordPress automatically adds a srcset attribute to your featured image. The srcset tells modern browsers which image is most appropriate for the size of the screen's device so the visitor doesn't have to download a giant image to show on a small phone screen.