Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, @bettyst

    It looks like the active state is related to the custom link setting on your website.

    Team is not highlighted and its link is https://duocam.at/?#team
    Work is highlighted and its link is https://duocam.at/#work

    Try keeping the same link structure for all the menu items.

    As for closing the side-nav on click, we will take this suggestion into account. In the meantime, you can achieve this with some custom theme modifications.

    Thread Starter Betty

    (@bettyst)

    Hi @inamoro,

    I do not want to have anchor links highlighted – as there are “never” active, unless you scroll to the part. But i think that’s not possible with the theme. That’s why i used ?#team do not get the menu item highlighted.

    For the closing i added a HTML widget to the sidebar, in case someone needs it:

    
    jQuery('.mobile-menu-wrapper .menu-item a').click(function() { jQuery('.navbar-toggle').click(); })
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Close side-nav on mobile on click to anchor link’ is closed to new replies.