Title: [Plugin: BAAP Mobile Version] functions.php &#8211; path to group_detection.php
Last modified: August 19, 2016

---

# [Plugin: BAAP Mobile Version] functions.php – path to group_detection.php

 *  [Jazzvox](https://wordpress.org/support/users/jazzvox/)
 * (@jazzvox)
 * [15 years ago](https://wordpress.org/support/topic/plugin-baap-mobile-version-functionsphp-path-to-group_detectionphp/)
 * In my /wp-content/themes/mobile_pack_base/**functions.php** on line 39 and 40
   the path to **group_detection.php** still points back to the “wp-content/plugins”-
   directory, so my group themes are not active!
 * To fix this I’ve changed
 *     ```
       $wp_mobile_pack_dir = WP_CONTENT_DIR . '/plugins/baap-mobile-version';
       include_once($wp_mobile_pack_dir . '/themes/mobile_pack_base/group_detection.php');
       ```
   
 * into
 *     ```
       $wp_mobile_pack_dir = WP_CONTENT_DIR . '/themes/mobile_pack_base';
       include_once($wp_mobile_pack_dir . '/group_detection.php');
       ```
   
 * Note: I’m using a [customized mobile theme](http://wordpress.org/support/topic/plugin-baap-mobile-version-header-doctype-charset-and-else-modified)
   and “Template: mobile_pack_base”

The topic ‘[Plugin: BAAP Mobile Version] functions.php – path to group_detection.
php’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Jazzvox](https://wordpress.org/support/users/jazzvox/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-baap-mobile-version-functionsphp-path-to-group_detectionphp/)
 * Status: not resolved