[WordPress] 外掛分享: WPDevDesign – Oxygen – Browser Detect

首頁外掛目錄 › WPDevDesign – Oxygen – Browser Detect
70+
安裝啟用
尚無評分
2224 天前
最後更新
問題解決
WordPress 5.1+ PHP 5.6+ v1.0.0 上架:2019-11-14

內容簡介

這個外掛會註冊一個名為 Browser 的自訂條件,可以根據訪客的瀏覽器來條件性地輸出Oxygen視覺站點建立器中元素的內容。

以下是條件值下拉式清單中的瀏覽器:

Brave
Chrome
Firefox
Edge
Internet Explorer
Opera
Safari
iPhone 上的 Safari

可用的演算子:
* =
* !=

這個外掛使用 Chris Schuld 的Browser.php進行瀏覽器偵測。

注意:使用 PHP 進行瀏覽器偵測可能無法(總是)正確運作。建議您在投資大量時間和精力創建特定瀏覽器的區段之前先測試此外掛。

現場演示。該頁面有多個標題,每個標題都設置為在特定瀏覽器中顯示,例如像這樣。

自動安裝

從您的 WordPress 插件的「安裝新加」頁面中搜尋「wpdevdesign」,並且進行安裝。

手動安裝

點擊「下載」按鈕下載外掛。
將整個 wpdevdesign-browser-detect 資料夾上傳到 /wp-content/plugins/ 目錄。
透過 WordPress 中的「外掛」功能表啟用它。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WPDevDesign – Oxygen – Browser Detect」→ 直接安裝(推薦)

原文外掛簡介

This plugin registers a custom condition named Browser using which elements in Oxygen visual site builder can be set to be output conditionally depending on the visitor’s browser.
These are the browsers available in the condition’s value dropdown:

Brave
Chrome
Firefox
Edge
Internet Explorer
Opera
Safari
Safari on iPhone

Operators available:
* =
* !=
This plugin uses Browser.php by Chris Schuld for browser detection.
Note: Browser detection using PHP may not (always) work. You are advised to test this plugin before investing a lot of time and energy in creating browser-specific Sections.
Live Demo. This page has multiple headings each set to appear in a specific browser like this.
Automatic Installation
Search for wpdevdesign from within your WordPress plugins’ Add New page and install.
Manual Installation

Click on the Download button to download the plugin.
Upload the entire wpdevdesign-browser-detect folder to the /wp-content/plugins/ directory.
Activate the plugin through the Plugins menu in WordPress.

延伸相關外掛

文章
Filter
Mastodon