Archived topic
Drop down menus stopped working update 2.0
12 replies · Started by rex wickham on December 12, 2017
Drop down menus in this site have stopped working [http://www.newsussexopera.org]
Site has Elementor installed
Seeing this error in Firefox console:
TypeError: o.querySelector(...) is null
http://www.newsussexopera.org/wp-content/themes/generatepress/js/dropdown-click.min.js:1:663
This topic is showing as having one reply, but I can't see it.
Hi there,
Sorry for the late reply.
Have you fixed this? I just tried on chrome and Firefox and the dropdown menu works? http://www.screencast.com/t/2GUoSBtD1d
Also don't see any console errors.
Hi
The site user changed the menu to Hover but notes the menu does not work on mobile devices (or small screen size on PCs). Could be same issue?
TypeError: a is null
[Learn More]
menu.min.js:1:2014
TypeError: this.closest is not a function
[Learn More]
dropdown.min.js:1:1745
This is currently a bug in 2.0 when the menu doesn't have a theme location: https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#setting-a-theme-location
It's fixed in 2.0.1 which we'll be releasing this week.
I am having the same issue. Only part of my mobile navigation links show after updating to 2.0, and I do have my menu set to Primary Menu in my theme location. How soon will you be releasing 2.0.1 or can you send a temp fix until until it is? This is kind of critical. Thanks!
Can you link us to the page?
Feel free to start a new topic if you need to keep it private.
Try updating this custom CSS you've added: https://docs.generatepress.com/article/mobile-navigation/#initiating-the-mobile-navigation-at-a-different-width
I did as you suggested, but still get the issue, though slightly different. The problem is on the sub-navigation under company services. When clicking on that, there is either a large blank gap...which should have multiple links...or it truncates the list.
P.S. I did clear my cache after just to be sure.
I just made one more adjustment to the code - it should work now :)
That did the trick. Thanks!
You're welcome :)