You can display different content for mobile devices, tablet devices, and laptops/desktops.
Specify which content to display by using the shortcodes listed here:
If you want to use the shortcodes in the PHP template files, or header/footer files, then you can use the code below:
First you must add this code:
require_once 'wp-content/plugins/mobile-content/mobile-detect.php';
$detect = new Mobile_Detect();Then you add this code for each shortcode you want to use:
if( $detect->isMobile() && ! $detect->isTablet() ) {
echo "Put your MOBILE content here";
}The above code is for the [mobile] shortcode. For [computer] shortcode use:
if( ! $detect->isMobile() && ! $detect->isTablet() ) {
echo "Put your COMPUTER content here";
}
If you want to do a specific device use this and change the device name:
if( $detect->isKindle() ) {
echo "Put your KINDLE content here"; }
Email me for support at support@wpmobilecontent.com
Dylan Feltus Design
Graphic Design & Web Development Services
DFD offers any type of Graphic Design, Web Design, adn Web Development services.
Bonsai Hosting
Web Hosting
Bonsai Hosting is the perfect hosting solution for any WordPress user. We have an easy One-Click Installer that will install WP in minutes.
CheapAss Websites
Cheap WordPress Websites
CheapAss Websites offers WordPress powered websites for dirt cheap. Landing pages for $99 and Ecommerce websites for $299.
Sarasota Web Solutions LLC
SEO, Custom Themes, Plugins, Mobile Apps, and more.
SWS specializes in custom WordPress development, Mobile Applications, Search Engine Optimization, & more.