You could have a try with wp_is_mobile()
:
if ( wp_is_mobile() ) {
remove_action( 'wp_print_scripts', 'mfbfw_load' );
remove_action( 'wp_print_styles', 'mfbfw_css' );
remove_action( 'wp_head', 'mfbfw_init' );
}
You should also check with tablets since they might have a big resolution and hence not fall in your “small screen” condition. You should note that the User Agent string can be modified by any browser sending the request.
Related Posts:
- What is the difference between “SMS Push” and “WAP Push”?
- Proper usage of wp_is_mobile()?
- How do I make my blog iPad / iPhone / Android friendly?
- WordPress REST endpoint with JSON for Mobile App integration
- WordPress on WP7
- Developing mobile version of WordPress site
- How can i disable a plugin for a mobile phone?
- How can I make a wp site in a mobile application?
- Why I am getting Parse error: syntax error when I use ‘wp_is_mobile’?
- Mobile Menu Not Showing
- Querying custom fields with Carrington mobile theme
- Is there any mobile application for WordPress? [closed]
- detect screen width in functions
- A URL that links specifically to the mobile version of my site?
- How to disable/enable specific plugins for a mobile theme?
- Elements floating on top of each other when Resizing or checking site on mobile. Twenty Twelve
- Mobile theme not showing correct page after custom re-writes
- My website is not responsive on mobile devices
- Best method for loading content on mobile – issue with wp_is_mobile
- Why is only one page responsive? [closed]
- Strategy for making a mobile version of an existing site? [closed]
- How can I redirect mobile users to diff url, but also allow them to come back to full site
- Open Menu is not working in Mobile view [closed]
- WordPress website loads fine on desktop browsers but Safari for iOS cannot load it completely [closed]
- Static page for desktop or mobile
- $is_iphone – to redirect a page
- Quick login from mobile phone
- How can I use my blog page as the homepage but only for mobile/tablet visits?
- Dropdown menu not displaying in handheld slide menu effect
- create a button in the header of the mobile menu in the middle of the logo and the menu accordion
- How to disable the topbar in mobile? [closed]
- WordPress mobil will not scroll
- Disable rendering of objects on mobile/above certain screen resolution
- Adapting “wide with” Gutenberg blocks for mobile
- Close Mobile Slide Menu on Click
- How can I hide/show text only for mobile users?
- Different Home page for Mobile without changing URL
- App in wordpress doesnt fit to mobile screen
- Add audio post from smartphone
- Display posts on a map
- responsive website
- Mobile Menu not working on TwentyThirteen child theme
- change theme when on mobile and also on Ipad portrait view
- Subdomain for WP Mobile Edition and Cloudfare
- How can I stop Jetpack mobile theme from using full size featured images?
- website is viewing as mobile, how do I turn this off?
- Work on two different themes at the same time in wordpress
- Add exception to WP Mobile Detector
- Using WordPress as a Mobile App Backend
- WordPress Mobile Edition not working with WP v3.5
- Why doesn’t the mobile version of my website take updates?
- Links not showing up on “AMPforWP”
- Viewing a WordPress website in landscape [closed]
- different startsite for IOS and change menu
- wordpress fancybox responsive mobile or pc version [closed]
- Separate Mobile site
- @Media min-width & max-width
- Excluding iPad from wp_is_mobile
- Create mobile site with same content just different theme
- How to stop mobile theme inheriting desktop navigation menu?
- How-to add rewrite rules to point the uploads folder to a subdomain
- Deactivate plugins only for mobile devices
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- Programmatically Selecting Theme Based on URL
- Using subdomain m.website.com for mobile theme?
- $args numberposts variable
- Hiding a php element from mobile browsers
- Mobile menu works on local XAMPP, but not on GoDaddy [closed]
- how to implement wp_is_mobile on themes?
- How do I add a widget from an Android phone?
- How do add a the style-mobile css from the main theme to the child theme?
- How can I make use of WP Mobile Detect conditions from within a plugin?
- Mobile issue – website isn’t properly detecting screen size [closed]
- Scaling images for mobile
- Photo Gallery Plugin and Touch Devices
- Search function does not work on mobile devices
- Contact form submit, having to click twice
- Disable Media File Image Link On Mobile Devices
- CSS is not loaded on mobile devices
- Mobile version and URL Rewrite
- Attaching images to posts manually (i.e. with custom code, without the use of an API)
- My menu doesn’t fit in the default screen in the mobile version
- Top bar menus not showing on mobile
- How to load subdirectory mobile theme and redirect mobile devices to subfolder?
- How to stop iFrame form from reloading on mobile?
- Remove metatag from a particular page
- Change menu for mobile
- Full size image from srcset ALWAYS used on mobile DESPITE setting size of image in editor
- resize chat bar on mobile [closed]
- add_image_size cropping changes on Mobile devices
- Reliable method to detect mobiles
- search in jquery mobile returns blank page
- Mobile Menu Not Working
- Plugin to load theme if mobile and specific page
- Any Mobile Theme Switcher – Theme not complete (Stylesheet missing)
- get_the_excerpt on mobile still displays continue reading
- How to read the contents of single post through RSS feed
- Center-Align Images on Mobile Only
- How can I directly upload smartphone videos to blog and comments?
- different image for mobile template block theme