Title: Adding exceptions for individual pages
Last modified: August 20, 2016

---

# Adding exceptions for individual pages

 *  [chrisbaily](https://wordpress.org/support/users/chrisbaily/)
 * (@chrisbaily)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-exceptions-for-individual-pages/)
 * I’m trying to install WP Mobile Detector on my site but I have an odd problem–
   I’m using my wordpress database to also service a mobile app we’re developing.
   We have an API and custom API page in my main theme on my site that is called
   by the app, but when I install WP Mobile Detector, the app can’t talk to my site.
   I’m assuming this is because MD is detecting the API call as mobile and switching
   to the mobile theme. Is there a way to specify a URL and have that page only 
   not switch to a mobile theme? Thanks for the plugin!

Viewing 1 replies (of 1 total)

 *  [websitezcom](https://wordpress.org/support/users/websitezcom/)
 * (@websitezcom)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/adding-exceptions-for-individual-pages/#post-2519275)
 * You’d either have to write your own plugin or modify this plugin’s detection 
   to return false on the pages you do not wish to have mobile activated on.
 * Modifying the plugin would be the easiest.
 * In the functions.php file, there is a function called: websitez_detect_mobile_device()
 * You can modify this function and add code like this:
 * if(is_page(‘mobile_app’)):
    //code here etc endif;

Viewing 1 replies (of 1 total)

The topic ‘Adding exceptions for individual pages’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [websitezcom](https://wordpress.org/support/users/websitezcom/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/adding-exceptions-for-individual-pages/#post-2519275)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
