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
- Not able to see updates my mobile after making updates on wordpress mobile version
- Not working Mobile view and Desktop view properly when we searched on website
- Mobile App Not Posting, Debugging Options
- How to hide or change mobile header logo with Additional CSS or custom PHP
- Category page doesn’t use category.php, instead it redirects to homepage
- How does WordPress decide what template to use as frontpage
- Custom query_var causes displaying posts archive on front page
- How do I show sticky posts on a static front page that also contains content?
- How do I stop a widget from displaying on mobile site?
- Child Theme for Mobile Browsers
- How to show only posts with images?
- Custom URL for all posts in WordPress
- How does a mobile WordPress theme differ from a simple theme?
- Create mobile navigation header with settings integration
- ID of Front-Page
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- How to serve different thumbnails/images depending on users browser/platform
- Only column gallery on mobile device
- Host frontpage via example.com and everything else via example.com/blog
- Create a page for a theme only
- What file is the standard frontpage that lists all the posts?
- Serve a different theme based on window size
- Change Header Image on Blog Post for Mobile View
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- How do I reference the front page’s parent Page object?
- Create a frontpage.php and static page template
- Using a specific template for front page only
- Button and Countdown overlapping mobile menu
- problem disabling plugin only for mobile
- How to show taxonomy on front page
- How to display 2 products per row for Mobile using WooCommerce?
- Changing the default view of “The Events Calendar” for mobile
- Update membership level via API request if using simple membership plugin
- Using an iframe for a form help
- menu mobile show up even i in desktop mode in Newspaper Theme
- Can I check who updated the static front page on WordPress and the time it was done
- Multiple devices wordpress website
- When Front page and Posts page are specified is it possible to just have front-page.php as the home page?
- Reverse ordered pagination on home page
- Custom background for the index page only?
- How to display only sticky posts on my automatically generated front page?
- How i can customize WordPress front page in WP dashboard editor?
- Changing when mobile menu is displayed