[WordPress] 外掛分享: WP Mobile Detect

前言介紹

  • 這款 WordPress 外掛「WP Mobile Detect」是 2012-07-16 上架。
  • 目前有 6000 個安裝啟用數。
  • 上一次更新是 2017-11-28,距離現在已有 2714 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.8.4 以上版本才可以安裝。
  • 有 64 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

professor44 |

外掛標籤

mobile | browsers | responsive |

內容簡介

在建立 Responsive WordPress 主題的最難部分之一是在網站上線後保持 Responsive 的一致性。使用者管理人員可能有限的編程能力,這可能會妨礙他們在主題中維持 Responsive。

WP Mobile Detect 的目標是讓任何人都能輕鬆地使用短代碼在編輯器中包裝內容,根據訪客設備在伺服器端隱藏內容。

我們不再需要依賴 display:none; 或其他技術在移動設備上隱藏內容。相反,我們可以用替代內容來取代它。當你的文章中的一個全尺寸的信息圖在訪客手機上顯示時,這可能被視為非用戶啟動的下載。換句話說,該訪客沒有意識到他們在下載什麼,你可能正在佔用他們的帶寬。

WP Mobile Detect 為您提供了在 [notdevice] [/notdevice] 短代碼中包裝信息圖表的能力,因此在 WordPress 的伺服器端決定只有當用戶不在手機或平板電腦上時才顯示該內容。或者,您可以用 [device] [/device] 短代碼包裝一個鏈接和相應的信息圖文作為讓訪客選擇消費該內容的方法。

該插件基於PHP Mobile Detect class,由Jesse Friedman編寫的WordPress插件。

原文外掛簡介

One of the hardest parts of building Responsive WordPress themes is maintaining responsive integrity after the site goes live. User Admins can have limited coding abilities which can prevent them from maintaining responsiveness in themes.
WP Mobile Detect aims to make it extremely easy for anyone to wrap content in the editor with shortcodes which will hide content based on visitor device at the server level.
No longer do we need to rely on display:none; or other techniques to hide content for mobile devices. Instead we can replace content with alternatives. When a full-size infographic in your post is unknowingly displayed on a visitors phone we can consider that an Non-user initiated download. In other words that visitor had no idea what they were getting into and you possibly just choked their bandwidth.
WP Mobile detect gives you the ability to wrap that infographic in a [notdevice][/notdevice] shortcode so at the server level WordPress will decide to show that content only if the user is NOT on a phone or tablet. Alternatively you can wrap a link and corresponding text to that info graphic in a [device][/device] shortcode as a way for the visitor to consume that content if they so choose.
This plugin is based on the PHP Mobile Detect class
WordPress Plugin written by Jesse Friedman

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Mobile Detect」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.0 | 1.1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Mobile Detect 》移動設備偵測(Mobile detect)外掛使用開源的MobileDetect PHP 庫 ,以微調內建的 WordPress 函數 wp_is_mobile() ,以使平板電腦不被偵測為行動裝置!, 如...。
  • Outdated Browser 》如果您已經對應用舊版瀏覽器的用戶造成困擾,那麼或許您已經感到疲憊不堪。也許他們不是「高級」用戶,或者是您的阿姨在使用上個世紀的瀏覽器嘗試查看很酷的C...。
  • Conditional Stylesheets and Body Classes 》可輕鬆在模板中包含特定瀏覽器的樣式表,或在 CSS 中選擇特定瀏覽器和版本的類別。, 條件式瀏覽器樣式表會在主題的 style.css 之後添加,從而允許它們覆蓋先...。
  • Browser-Update-Notify 》透過此外掛,您可以優雅地提示訪客更新瀏覽器,以下版本的瀏覽器預設會收到提示訊息:IE:8及更早版本|Firefox:12及更早版本|Opera:11及更早版本|Safari:5...。
  • Customers by Product Purchase 》有時候我們需要查詢哪些客戶購買了您的某些產品。這是一種簡單的方法來查找。, 作者, 由Tareq Hasan從weDevs帶給您。。
  • anti-IE6-army 》Anti IE6 Army 是一個幫助您輕鬆參加反對 IE6 活動的 WordPress 外掛,您只需選擇想要在您的部落格上使用的活動。, 支援的 IE6 阻擋程式, , Crossover, End6,...。
  • Hide and show for devices 》Hide and show for devices 是一款基於 PHP Mobile Detect(http://mobiledetect.net/)類別的 WordPress 外掛程式。透過使用 Shortcodes,它可以根據設備類...。
  • Prism Warning 》這個外掛可以在訪客的瀏覽器是由與 PRISM 有關的公司製造時發出警告。, 目前已有英文和德文的翻譯,如果你想貢獻更多語言,可以在 GitHub 上提交拉取請求。, ...。

文章
Filter
Mastodon