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

Conditional Display for Mobile – Mobile Detect Plugin

描述

WordPress Mobile Detect Plugin

Conditional Display for Mobile is a mobile detect plugin that can be used to control what content is displayed depending on the visitor’s device or web browser. For example, you might want to display some content only on iPhone and iPad, or you want to hide the content on mobile and tablet devices. The plugin also supports add start time and end time to shedule the content so it will only be displayed in the specified date and time.

Features

  • Include or exclude devices
  • Detect iPhone, iPad, iPod, Android, Mobile, Windows, Linux and Mac
  • Include or exclude web browsers
  • Detect Mozilla Firefox, Google Chrome, Safari, Opera, Internet Explorer 6/7/8/9/10/11 and Microsoft Edge
  • Add start time and end time to schedule the content so it will only be displayed in the specified date and time
  • Support shortcode in the content
  • Use the conditional display shortcode in text widget
  • PHP functions to detect mobile and browser

How to Use

Please view the online tutorial: https://www.wonderplugin.com/wordpress-conditional-display-for-mobile/#tutorial

安裝

Install the plugin in WordPress backend

  1. In WordPress backend, go to menu Plugins -> Add New
  2. Search Conditional Display for Mobile by WonderPlugin
  3. Install the plugin

Install the plugin with downloaded plugin zip file

  1. In WordPress backend, go to menu Plugins -> Add New
  2. Click the link Upload Plugin
  3. Select the plugin zip file, then click Install Now

Uninstall the plugin

  1. In WordPress backend, go to menu Plugins -> Installed Plugins
  2. Deactivate the plugin
  3. After the plugin is deactivated, Delete the plugin

常見問題

What shortcode is supported and how to use the plugin?

Please view the online tutorial: https://www.wonderplugin.com/wordpress-conditional-display-for-mobile/#tutorial

Is the plugin compatible with cache plugins?

Caching means WordPress will serve static cached content.

Usually cache plugins have an option to enable different caches for mobile/tablets. You can enable the option then the device detection will work.

If the cache plugin doesn’t have such an option, it means it will serve the same static cached content regardless of the current device and web browser, then the detection will not work.

Does the plugin support any PHP API?

Yes. Please view the online tutorial: https://www.wonderplugin.com/wordpress-conditional-display-for-mobile/#api

評價

2019年12月28日
I have fixed an issue with this plugin. My wants to add apps icon for a separate device and the plugin done by a few minutes. I appreciate it and best of luck for the developer of this plugin.
2019年8月7日
After trying to figure out how to conditionally display stuff online for ages, this has been a life saver. Took me a little while to figure out how it works, but then it was great.
2017年7月27日
This is exactly what we were looking for, a way to display a message in PHP, for mobile and tablet users. It’s working perfectly. Thanks to authors!
2017年3月22日
Glad I found this plugin when I did. I was thinking “This concept is too good to be true” but when I tested it on my mobile it worked exactly as described. VERY PLEASED.
閱讀全部7個評價

貢獻者及開發者

“Conditional Display for Mobile – Mobile Detect Plugin” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

1.2

  • Fix the bug of detecting Opera, Firefox and new Edge

1.1

  • Add start time and end time to shedule the content so it will only be displayed in the specified date and time

1.0

  • First version released