Title: the navigation toggle menu button does not work on localhost
Last modified: November 6, 2022

---

# the navigation toggle menu button does not work on localhost

 *  Anonymous User
 * (@anonymized-15054309)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/)
 * Hello,
    I realized that on localhost (XAMPP 8.1.6 for Windows), the navigation
   toggle menu button does not work. At the same time, this button works fine production
   testing website. I disabled all plugins and saw that the button works. And then
   activated the Gutenberg plugin and found out that the button does not work so
   I believe there’s an issue with this plugin. I use WordPress version 6.1 and 
   Gutenburg version 14.4.0 (the latest versions now) with both 2023 and 2022 themes.
   I hope someone can help. Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-navigation-toggle-menu-button-does-not-work-on-localhost%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * (@thelmachido)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/#post-16195627)
 * Hi @mohammad177
 * It will not be possible to access a site on localhost, you mentioned that the
   toggle button doesn’t work on localhost, however
 * > At the same time, this button works fine production testing website.
 * Can you please give up more information about the above, I want to understand
   the difference between the two sites.
 *  Thread Starter Anonymous User
 * (@anonymized-15054309)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/#post-16203515)
 * Hi [@thelmachido](https://wordpress.org/support/users/thelmachido/)
 * I use this version of XAMPP for Windows: [https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/8.1.6/](https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/8.1.6/)
   
   You can use install and test it if possible.
 * The local and production testing environments are the same:
    I used the 2023 
   theme and disable all plugins except Gutenberg. One of these websites is on my
   local computer and one is in a folder on my hosting online where I installed 
   WordPress on it for testing purposes. I use the latest version of the theme, 
   WordPress, and Gutenberg till now (the time I am writing this post) for both 
   of them.
 * I used developer tools to debug. It seems that the toggle menu button on the 
   local host lack one event listener that is responsible to open the modal.
    Look
   at these images from local and production websites: Production: [https://i.ibb.co/jTmLtBs/toggle-menu-issue-1-production.jpg](https://i.ibb.co/jTmLtBs/toggle-menu-issue-1-production.jpg)
   Local: [https://i.ibb.co/KsK8cJC/toggle-menu-issue-1-localhost.jpg](https://i.ibb.co/KsK8cJC/toggle-menu-issue-1-localhost.jpg)
   I underlined the event listener in red on the production website image.
 *  [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/)
 * (@juanmaguitar)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/#post-16233466)
 * Hi @mohammad177
 * Which browser and version are you using for this test?
    Are you having this same
   behavior in different answers?
 *  Thread Starter Anonymous User
 * (@anonymized-15054309)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/#post-16237214)
 * Hi [@juanmaguitar](https://wordpress.org/support/users/juanmaguitar/)
    I tested
   again now with these browsers (latest versions): Edge v107 Firefox v107 Opera
   v93 Chrome v107 The behavior is the same in all of them. The problem exists.
 *  [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/)
 * (@juanmaguitar)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/#post-16239250)
 * For reference, the testing instructions to reproduce this bug would be:
    – Local
   Environemnt: XAMPP 8.1.6 – SO: Windows – Browsers: Edge v107, Firefox v107, Opera
   v93. Chrome v107 – Theme: Twenty Twenty Three
 * I don’t use Windows so I cannot reproduce this bug in my machine (I let the testing
   instructions just in case any other member of the community can reproduce it 
   and provide more insights about this issue)
 * There’s a suite of tests that are launched automatically for the [navigation block](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/navigation).
   If there’s no test for this button (to check that clicking this button produces
   the expected output, for example), an [issue](https://github.com/WordPress/gutenberg/issues)
   should be created to request the inclusion of this test.
 * > There’s an [open issue to improve the tests for the Navigation block](https://github.com/WordPress/gutenberg/issues/44920).
   > Feel free to add a comment to this issue to request a specific test for this
   > expected behavior of this component or to create a new issue and reference 
   > this one (like [this one](https://github.com/WordPress/gutenberg/issues/45204)
   > did)
    -  This reply was modified 3 years, 6 months ago by [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/).
    -  This reply was modified 3 years, 6 months ago by [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/).
    -  This reply was modified 3 years, 6 months ago by [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/).
    -  This reply was modified 3 years, 6 months ago by [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/).
    -  This reply was modified 3 years, 6 months ago by [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/).

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

The topic ‘the navigation toggle menu button does not work on localhost’ is closed
to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [JuanMa Garrido](https://wordpress.org/support/users/juanmaguitar/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/the-navigation-toggle-menu-button-does-not-work-on-localhost/#post-16239250)
 * Status: not resolved