[WordPress] 外掛分享: isMobile() Shortcode for WordPress

首頁外掛目錄 › isMobile() Shortcode for WordPress
WordPress 外掛 isMobile() Shortcode for WordPress 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
12 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v2.0.0 上架:2018-11-04

內容簡介

此外掛利用開源的 Mobile Detect Library,讓使用者能根據不同裝置顯示特定內容,提升網站的行動裝置體驗。

【主要功能】
• 支援多種裝置篩選
• 可顯示行動裝置專屬內容
• 提供偵測裝置的除錯資訊

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin works with the open source Mobile Detect Library. You can get further information on its website.
[ismobile device='iphone' debug=true ] Your content [/ismobile]

Parameters

device: Filters the device where you want the content to be shown. It could be more than one device, simply separate them with comma.
debug: Shows Mobile Detect Library installed version. Also shows two arrays. The first one contains the devices which the library detects and the second one contains the devices where you want to show the content.

Values

android: Shows content in Android devices.
chrome: Shows content on Chrome browser (Only works on mobile devices).
desktop: Shows content on a computer. Opposite to mobile option.
ios: Shows content in iOS devices.
ipad: Shows content on a iPad.
iphone: Shows content on a iPhone.
mobile: Shows content on a mobile device (includes tablets and cell phones). Opposite to desktop option.
phone: Shows content on a cell phone.
safari: Shows content on Safari browser (Only works on mobile devices).
samsung: Shows content on Samsung devices.
tablet: Shows content on a tablet.

延伸相關外掛

文章
Filter
Mastodon