I used this:
<?php if ( wp_is_mobile() && is_front_page() ) {
wp_redirect( 'http://www.example.com', 301 ); exit;
} ?>
in header.php
of theme.
Related Posts:
- How can I use my blog page as the homepage but only for mobile/tablet visits?
- 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
- Different Front page for 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]
- $is_iphone – to redirect a page
- Quick login from mobile phone
- 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
- How to disable fancybox on small screens
- 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
- What is the best way to detect a mobile device?
- How to detect mobile devices and present them a specific theme?
- Disable plugin / plugin action via theme
- What’s the best way to use the Featured Image for responsive web design?
- How does WordPress decide what template to use as frontpage
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- Index showing source code
- How do I stop a widget from displaying on mobile site?
- How to show only posts with images?
- Mobile Featured Image Bug
- Create mobile navigation header with settings integration
- Template hierarchy about pagination after front-page.php
- Set front page option using custom fields?
- Uber menu, manual integration, disable Mobile
- Host frontpage via example.com and everything else via example.com/blog
- The concept of non-blog content
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- Show a different code on front page to other pages
- What does $_GET[‘iphone’] do?
- How to best include widget area just on homepage?
- Review site using WordPress
- upload image only
- Row background image not showing in mobile browser served from wamp local host
- How to call posts under a specific category on static front page?
- WordPress loop not working on static front page
- Problem with Front-Page.php loading recent posts
- custom change in front page [closed]
- Remove edit post link from static front page
- 1 post per category on homepage and counting those posts
- Remove widgets on mobile front page without affecting desktop
- Applying metatag to single page
- Add href to tag in nav menu for mobile
- Image is missing on site homepage
- On login redirect to different homepage if user is using a mobile
- Edit a template while still keeping a Landing Page on the main address
- Search and replace post URL’s on page output?
- How to remove the word “Navigation” from the top of the mobile main menu?
- URL of blog when using index.php as blog and front-page.php as homepage
- How to make my homepage automatically redirect to an external website?
- Making WordPress-built website mobile friendly
- front page won’t change templates
- Static front page as parent of with child pages?
- different image for mobile template block theme