
This plugin detects the client device in a simple way at php level.
For a desktop in linux
For a desktop in Mac
For an iphone mobile
For an iphone mobile landscape
For an android mobile
And also for IE 😉
<?php if ( is_tttdevice('desktop') ) { echo "this is a desktop device"; } elseif ( is_tttdevice('mobile') ) { echo "this is a mobile device"; } elseif ( is_tttdevice('tablet') ) { echo "this is a tablet device"; } else { echo "Opps... we don't know what this device is!!"; } ?> <?php if ( ! is_tttdevice('mobile') ) { get_sidebar(); } ?> This means, the sidebar will not show in mobile devices. This is not the same has “hidden” in CSS, with TTT Devices the code is not sent to the client.
<?php if ( is_tttdevice('iphone') ) { echo "this is an iPhone"; } if ( is_tttdevice('android') ) { echo "this is an android"; } if ( is_tttdevice('windowsphone') ) { echo "this is an windows phone"; } if ( is_tttdevice('mobile') ) { echo "this is a mobile"; } ?> It is very useful if you need make your site faster for mobile or tablet, these browsers can’t handle well some javascript effects. You can stop loading them in mobile devices. Example:
In your functions.php file:
function heavyanimation_script() { if ( is_tttdevice('desktop') ) { wp_enqueue_script( 'heavyanimation', get_template_directory_uri() . '/js/havyscript.js', array('jquery')); } } add_action('wp_enqueue_scripts', 'heavyanimation_script'); This means that js only loads in desktop devices, easy 🙂
Starting from $0 per month.
Rating
Reviewers
1 reviews
Tags
Developed By
33themes
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Interactive rankings that boost engagement
Add collapsible content sections to your site to organize information and help users navigate content more efficiently.
Add social share buttons so visitors share content to major networks, boost engagement, and drive more referral traffic.
Add comparison tables to your site to help visitors evaluate features side by side, understand differences quickly, and choose the right option with confidence.
Add interactive video overlays with links, product cards, and buttons that appear on top of your videos to boost engagement and guide user actions.
Use a scroll progress bar that visually tracks reading on the page, improves navigation, and keeps visitors aware of their position.
Show your Amazon product reviews with My Reviews on Amazon to build trust, boost credibility, and help visitors make confident purchase decisions.
Create event listings with an events board widget that displays upcoming activities clearly, helps visitors discover events, and supports easy management.
Track time since important events with a count up clock that displays elapsed days and hours and keeps visitors engaged.
Create engaging stop motion displays with a stop motion player that turns image sequences into interactive animations to boost creativity and visitor engagement.
Show G2 reviews to build trust, strengthen credibility, and help visitors make confident SaaS buying decisions that support higher sales.
Create an online restaurant menu that organizes dishes, highlights key items, and helps visitors explore options with confidence.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
