Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.2 KB

readme.md

File metadata and controls

22 lines (16 loc) · 1.2 KB

WP Mobile Detect Shortcodes

About

Lightweight plugin that creates shortcodes to show or hide content based on the user's device, updated to work with almost all WordPress Versions.

This uses the Mobile Detect Library https://github.com/serbanghita/Mobile-Detect

How to use it?

Shortcode Usage
[show_in_mobile] [show_in_mobile]This shows in Mobile only[/show_in_mobile]
[show_in_desktop] [show_in_desktop]This shows in Desktop only[/show_in_desktop]
[show_in_iOS] [show_in_iOS]This shows in iOS Devices only[/show_in_iOS]
[show_in_android] [show_in_android]This shows in Android Devices only[/show_in_android]
[show_in_tablet] [show_in_tablet]This shows in Tablets only[/show_in_tablet]

Installation

  1. Download as zip (click in the code green button in github and download zip) and upload the plugin to your WordPress site.
  2. Activate the plugin named "WP Mobile Detect Shortcodes".
  3. Enjoy