Title: Mobile Redirect
Last modified: August 22, 2016

---

# Mobile Redirect

 *  [Matthew](https://wordpress.org/support/users/kidsguide/)
 * (@kidsguide)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/mobile-redirect-6/)
 * How do I make a code saying that if is mobile redirect to the home page from 
   the main page?
 * I would need to add a redirect code to the following code.
 *     ```
       <?php
       if ( wp_is_mobile() ) {
       	/* Display and echo mobile specific stuff here */
       }
       ?>
       ```
   
 * You can check out my website to understand more. [http://www.redeemerdanceacademy.ca/](http://www.redeemerdanceacademy.ca/)
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Matthew](https://wordpress.org/support/users/kidsguide/)
 * (@kidsguide)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/mobile-redirect-6/#post-5513309)
 * Found a solution!
 * [https://wordpress.org/plugins/equivalent-mobile-redirect/](https://wordpress.org/plugins/equivalent-mobile-redirect/)
 *  Thread Starter [Matthew](https://wordpress.org/support/users/kidsguide/)
 * (@kidsguide)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/mobile-redirect-6/#post-5513365)
 * The plugin above has way to many bugs in it so it didn’t do what I wanted it 
   to do.
 * I am going back to my coding idea.
 * Tried the following but it didn’t work.
 *     ```
       if_is_mobile {
       if(is_page('contact')) :
       header('Location: http://www.redeemerdanceacademy.ca/home/');
       die();
       endif;
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mobile Redirect’ is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [Matthew](https://wordpress.org/support/users/kidsguide/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/mobile-redirect-6/#post-5513365)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
