[WordPress] 外掛分享: WP Mobile Detect

首頁外掛目錄 › WP Mobile Detect
5,000+
安裝啟用
★★★★
4.8/5 分(64 則評價)
3033 天前
最後更新
問題解決
WordPress 2.8.4+ v2.0 上架:2012-07-16

內容簡介

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

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

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

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

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Mobile Detect」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon