该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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