Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Custom Canvas button

  • 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?

  • 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?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.