Title: The navigation menu problem
Last modified: October 14, 2019

---

# The navigation menu problem

 *  [endru27](https://wordpress.org/support/users/endru27/)
 * (@endru27)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/the-menu-panel-problem/)
 * I have a problem with the navigation in the Minimal Grid theme. I want the menu
   to be hidden by default.
    I changed the option: <body <?php body_class(‘extended-
   menu’); ?>> on <body <?php body_class(); ?>>
 * After changing it’s good on desktops but on mobile devices is expanded by default
   and this affects responsiveness (everything overlapse). I don’t know what I did
   wrong?
 * Thanks for the help
    -  This topic was modified 6 years, 8 months ago by [endru27](https://wordpress.org/support/users/endru27/).

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

 *  [hicks78](https://wordpress.org/support/users/hicks78/)
 * (@hicks78)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/the-menu-panel-problem/#post-12089032)
 * Hi, I wanted the same so I finally used some javascript (I added this to the 
   footer):
 *     ```
       <script>
       window.onload = function() {
        if(window.innerWidth < 992) document.getElementsByTagName('body')[0].classList.add('extended-menu');
        else document.getElementsByTagName('body')[0].classList.remove('extended-menu');
       };
       </script>
       ```
   
 * Hope it helps somebody until theme team answers with better solution
    -  This reply was modified 6 years, 7 months ago by [hicks78](https://wordpress.org/support/users/hicks78/).
 *  [hicks78](https://wordpress.org/support/users/hicks78/)
 * (@hicks78)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/the-menu-panel-problem/#post-12089820)
 * After some more testing finally I’m using this code:
 *     ```
       <script>
       function nomenu(){if(window.innerWidth > 992) document.getElementsByClassName('nav-panel-toogle')[0].click();};
       window.onload = setTimeout(nomenu,900);
       </script>
       ```
   

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

The topic ‘The navigation menu problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/minimal-grid/1.3.0/screenshot.
   png)
 * Minimal Grid
 * [Support Threads](https://wordpress.org/support/theme/minimal-grid/)
 * [Active Topics](https://wordpress.org/support/theme/minimal-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/minimal-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/minimal-grid/reviews/)

## Tags

 * [extended](https://wordpress.org/support/topic-tag/extended/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * 2 replies
 * 2 participants
 * Last reply from: [hicks78](https://wordpress.org/support/users/hicks78/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/the-menu-panel-problem/#post-12089820)
 * Status: not resolved