Skip to content

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

Notifications You must be signed in to change notification settings

marcoleejr/WP-Mobile-Detect-Shortcodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages