This topic is: resolved

Mobile Menu – want to auto collapse after clicking a menu link

  • katyberkhout
    Participant
    Post count: 13
    # 2 years, 7 months ago

    Hello again,
    Right now the mobile-menu opens when clicked and stays open after you select a link in the nav. Is there a way to make it auto collapse closed after selecting link?
    thanks!

    katyberkhout
    Participant
    Post count: 13
    # 2 years, 7 months ago

    Hi I am just following up on this question since you asked me to to post another thread.
    If you can let me know by Monday that would be great thx!

    AuthorAuthor
    Keymaster
    Post count: 26641
    # 2 years, 7 months ago

    Hi there

    Add custom js in scripts.js just after:
    $(window).load(function() {

    if($(window).width() < 959){
    $(".navigation .slideanchor").on('click',function(){
    $(".navigation").slideUp();
    });
    }

    Thanks

    katyberkhout
    Participant
    Post count: 13
    # 2 years, 7 months ago

    Awesome thank you! and I also added another one just like this and changed .slideanchor to .totab so that the tabs did the same collapse on click. Just noting this in case this comes up for someone else.

    AuthorAuthor
    Keymaster
    Post count: 26641
    # 2 years, 7 months ago

    Glad it worked 🙂
    Would you mind giving a 5 star rating to our theme at your ThemeForest’s Downloads page? That would be very appreciable. Instructions to do that: http://cl.ly/image/1p2U0N0H0a0E

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.