-
Hi,
I added a custom canvas button to my menu with the correct class, but it throws an error in my console when clicked on:
menu.min.js?ver=3.5.1:1 Uncaught TypeError: Cannot read properties of null (reading ‘getAttribute’)
at HTMLButtonElement.a (menu.min.js?ver=3.5.1:1:2073)I disabled all plugins, but it still does it. Any Idea’s how I can fix it?
-
Alvind
Hi there,
This might be a silly question, but is the Off Canvas Navigation enabled in the Customizer?
-
Hi Alvind,
Not at all!
But yes, it is enabled. Only for mobile though, because it only has to work for mobile. It doesn’t work anywhere right now 🙂
-
The off canvas menu needs to be ON for all devices to make the custom button work, can you give it a try?
-
Still the same error unfortunately
-
The button needs to be inside the primary navigation, it’s currently inside the site header.
Just a question, why not just use a mobile header so you can use the default slideout button?
- You must be logged in to reply to this topic.