Tagged: x
-
AuthorPosts
-
May 31, 2016 at 3:05 am #1017694
TinamiParticipantHi!
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?May 31, 2016 at 3:07 am #1017698
TinamiParticipantThis reply has been marked as private.May 31, 2016 at 3:19 am #1017719
Paul RModeratorHi,
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.
May 31, 2016 at 3:48 am #1017770
TinamiParticipantHi 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? 🙂May 31, 2016 at 3:53 am #1017773
TinamiParticipantNevermind! Now it works like a clock 🙂 Thank you for the excellent help!
May 31, 2016 at 4:03 am #1017781
LelyModeratorYou’re welcome!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1017694 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
