這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Super Browser Detector

外掛說明

Super Browser Detector adds PHP user agent information to the body class to help target specific devices, browsers, and operating systems with CSS.

Major features in User Agent Body Class include:

  • Adds user browser and operating system information as a string to the body class.

安裝方式

Upload Super Browser Detector folder to your blog, then Activate it.

使用者評論

2019 年 4 月 25 日
This plugin is great as it provides the PHP command lines for identifying browsers and using if commands. It's not a great plugin for cacheing when using plugins such as W3 Total Cache, especially with memcache, as it stores .browser-gecko and .os-linux on the server. It's better used as inline-PHP standalone commands: $userAgent = $_SERVER['HTTP_USER_AGENT']; if($is_safari) { echo 'safari item'; } elseif($is_chrome) { echo 'chrome item'; } It's super helpful for providing these tags however, especially since these lines of code will transcend version updates for the foreseeable future, and it will work fantastic with a non-cacheing website.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Super Browser Detector〉的開發相關工作。

參與者

將〈Super Browser Detector〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2

Release Date – 26 March 2020
* Adds support for new Chromium Edge thanks to my friend Jan!

1.1

Release Date – 28 November 2017
* Adds support for Edge

1.0

Release Date – 28 September 2016
* Initial release