Support » Theme: Yuuta » Menu close after a link is clicked

  • Resolved stijnoo96

    (@stijnoo96)



    Hi,

    I love your theme! I’m having trouble with my menu. When a link of the ‘Hamburger’ menu is clicked, I want the menu to close. I’m using Yuuta as a one-page website, so that is why I need the menu to close after a link is clicked.

    Hope you can help me!

    Cheers,
    Stijn

Viewing 1 replies (of 1 total)
  • Theme Author felixdorner

    (@felixdorner)

    Hey, the theme is not developed to get used as a one-pager. However, you can use the following script to make it work:

    $( '.site-navigation-wrapper .menu-item a' ).on('click', function() {
    	$('.site-navigation-wrapper').removeClass( 'is-visible' );
    	$('site-header').toggleClass('menu-is-open');
    	$('.menu-icon').toggleClass('is-clicked');
    });
    • This reply was modified 2 years ago by  felixdorner.
Viewing 1 replies (of 1 total)
  • The topic ‘Menu close after a link is clicked’ is closed to new replies.