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
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] |
- Download as zip (click in the code green button in github and download zip) and upload the plugin to your WordPress site.
- Activate the plugin named "WP Mobile Detect Shortcodes".
- Enjoy