這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Mobile Featured Image

外掛說明

Easily display a mobile featured image on your posts and page!

Up to 70% of website traffic today is on mobile devices. Sometimes WordPress does not quite resize the featured image in the best way. Avoid this and have full control over your featured images on any device with this plugin.

To add a mobile featured image, simply upload a new image in the meta box right below the WordPress Featured Image called Mobile Featured Image. The new image can be a specifically resized version of your featured image or an entirely new image targeted especially for mobile viewers.

You can add your mobile featured image without worrying about slowing down your site. The mobile image is added to the 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.

螢幕擷圖

  • The same post, when viewed on a desktop or phone, shows two different images for the featured image
  • Add the mobile featured image in the metabox just below the featured image.

安裝方式

  1. Upload the mobile-featured-image folder to your /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu

常見問題集

Do I have to add a mobile featured image to every post?

Nope! We’ll only add in a mobile version if you’ve added one to the post.

Will the visitor have to download two images now?

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!

How does the plugin work?

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.

使用者評論

2018 年 4 月 20 日
This plugin messes up the wp-admin edit pages: - Many of the page features disappear (e.g.- excerpt, slug, sharing button, Yeost SEO edit boxes) - Screen Options tab on the top will not open, so I can't reach the settings to turn page features on/off. - A box shows up at the bottom of the sidebar for Mobile Featured Image, but there is no way to select an image - no link. In short, not only does this not allow me to add a smaller featured image for mobile, but it destroys a lot of the other Wordpress admin page functionality. I would love to use this for faster mobile page loads, but it is unusable!
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Mobile Featured Image〉的開發相關工作。

參與者

將〈Mobile Featured Image〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

Initial release