Title: [Plugin: WP Mobile Detector] The plugin doesn&#039;t works
Last modified: August 20, 2016

---

# [Plugin: WP Mobile Detector] The plugin doesn't works

 *  [nomeecognome@gmail.com](https://wordpress.org/support/users/nomeecognomegmailcom/)
 * (@nomeecognomegmailcom)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-mobile-detector-the-plugin-doesnt-works/)
 * I have the last version of WP, and the last of wp-mobile-detector.
    I have a 
   main theme and after a child theme the overwite only 2-3 function. When i try
   to select the child theme from the list, the plugin always load the main theme.
   How to fix the problem? Have you an idea of where is the problem?
 * [http://wordpress.org/extend/plugins/wp-mobile-detector/](http://wordpress.org/extend/plugins/wp-mobile-detector/)

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

 *  Plugin Author [websitezcom](https://wordpress.org/support/users/websitezcom/)
 * (@websitezcom)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-mobile-detector-the-plugin-doesnt-works/#post-2370604)
 * What folder is the child theme located in?
 * Can you give me the full directory path?
 *  [joshkadis](https://wordpress.org/support/users/joshkadis/)
 * (@joshkadis)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-mobile-detector-the-plugin-doesnt-works/#post-2370679)
 * I’m having the same issue with not being able to select child themes. It looks
   like the problem is caused by relying on the “template” attribute of the theme
   instead of the theme name – which is problematic because a child theme has the
   same template as its parent. For instance, line 159 of md-admin/functions.php
 * `<option name="theme_template" value="<?php echo $mobile_theme['Template']; ?
   >" <?php if($mobilemeta->theme_template==$mobile_theme['Template']) echo 'selected
   ="selected"'; ?>><?php _e($name); ?></option>`
 * Setting the value to $mobile_theme[‘Template’] means that a parent theme and 
   its children will have the same value in the dropdown menu.
 * I think the solution is to separate template and stylesheet, this is why WordPress
   has separate values for these in the wp_options table.

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

The topic ‘[Plugin: WP Mobile Detector] The plugin doesn't works’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mobile-detector_899b74.svg)
 * [WP Mobile Detector](https://wordpress.org/plugins/wp-mobile-detector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mobile-detector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mobile-detector/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mobile-detector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mobile-detector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mobile-detector/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [joshkadis](https://wordpress.org/support/users/joshkadis/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-mobile-detector-the-plugin-doesnt-works/#post-2370679)
 * Status: not resolved