Title: gerugersten's Replies | WordPress.org

---

# gerugersten

  [  ](https://wordpress.org/support/users/gerugersten/)

 *   [Profile](https://wordpress.org/support/users/gerugersten/)
 *   [Topics Started](https://wordpress.org/support/users/gerugersten/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gerugersten/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gerugersten/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gerugersten/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gerugersten/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gerugersten/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Menu - Create Mobile-Friendly Menu] Possible to change width detection to device detection](https://wordpress.org/support/topic/possible-to-change-width-detection-to-device-detection/)
 *  [gerugersten](https://wordpress.org/support/users/gerugersten/)
 * (@gerugersten)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/possible-to-change-width-detection-to-device-detection/#post-4857495)
 * Well I just needed the same thing as Jessica and the simplest way to do this 
   is by adding the condition “wp_is_mobile()” to your “responsive-menu.php” file
   in the plugin folder.
 * Should look like this then:
 *     ```
       /* 4.1 Display Responsive Menu on Site ============= */
       if( !is_admin() && wp_is_mobile()) :
       ```
   
 * wp_is_mobile() is a funtion in your **wp-includes/vars.php** to detect if the
   viewer has a mobile device or not.
    There are some plugins for further detection
   like **is_phone() is_tablet() is_android()** etc. referring to this [article](http://premium.wpmudev.org/blog/how-to-adapt-your-wordpress-theme-layout-for-different-devices/).
 * [@peter](https://wordpress.org/support/users/peter/) I really love your plugin
   and think it would be great if you add at least the option with wp_is_mobile(),
   as it is given from wordpress 🙂

Viewing 1 replies (of 1 total)