• The mobile menu needs to be manually closed after selecting a menu option.
    Is there a way to fix this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Branko

    (@brankoconjic)

    Hi @beanaranjo,

    Yes, by default the menu does not close on menu click. You can enable that by adding this JS code to your website:

    document.querySelectorAll('.sinatra-nav').forEach( (nav) => {
      nav.querySelectorAll('a').forEach( (link) => {
      	link.addEventListener('click', () => {
      	    document.documentElement.classList.remove('is-mobile-menu-active')
                nav.removeAttribute('style');
            })
      })
    })

    If you are not sure how to add the code, you can use this plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile menu not closing’ is closed to new replies.