Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1017694
    Tinami
    Participant

    Hi!
    When I look at my website in mobile view and use the menu, it opens and when I click it redirects to the proper place. But after the click, the menu is still open and i need to close it manually. Is there an option that make the menu close automatically afterwards?

    #1017698
    Tinami
    Participant
    This reply has been marked as private.
    #1017719
    Paul R
    Moderator

    Hi,

    Thanks for writing in!

    To make it close, you can add this in Appearance > Customize > Custom > Edit Global Javascript

    
    (function($){
      $('.x-navbar .x-nav-wrap.mobile a').on('touchend click', function(){
        $('.x-nav-wrap.mobile').toggleClass('in').css('height', 0);
        $('.x-btn-navbar').toggleClass('collapsed');
      });
    })(jQuery);
    

    Hope that helps.

    #1017770
    Tinami
    Participant

    Hi again!
    That did work at first but then i changed the menus and now its not working. Can you please take one more look at it and see whats the problem? 🙂

    #1017773
    Tinami
    Participant

    Nevermind! Now it works like a clock 🙂 Thank you for the excellent help!

    #1017781
    Lely
    Moderator

    You’re welcome!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1017694 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>