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

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

內容簡介

[ismobile device=’iphone’ debug=true ] 您的內容 [/ismobile]

參數

device: 篩選您希望顯示內容的裝置。可以選擇多個裝置,只需用逗號分隔。
debug: 顯示 Mobile Detect Library 安裝版本。同時顯示兩個陣列。第一個包含該函式庫偵測到的裝置,第二個包含您希望顯示內容的裝置。

android: 在 Android 裝置上顯示內容。
chrome: 在 Chrome 瀏覽器上顯示內容(僅適用於移動裝置)。
desktop: 在電腦上顯示內容。與移動裝置選項相反。
ios: 在 iOS 裝置上顯示內容。
ipad: 在 iPad 上顯示內容。
iphone: 在 iPhone 上顯示內容。
mobile: 在行動裝置上顯示內容(包括平板電腦和手機)。與桌面選項相反。
phone: 在手機上顯示內容。
safari: 在 Safari 瀏覽器上顯示內容(僅適用於移動裝置)。
samsung: 在 Samsung 裝置上顯示內容。
tablet: 在平板電腦上顯示內容。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.2) 或搜尋安裝

① 下載 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
Apply Filters
Mastodon