Tagged: x
-
AuthorPosts
-
March 7, 2017 at 3:11 pm #1398273
erik_ragnarParticipantHi,
Seems like this is somewhat a recurrent topic and you guys answer this in a lot of other posts. However, i have encountered a problem using your suggested method:
jQuery(document).ready(function($){ $('.menu-item a').click(function(){ $('.x-nav-wrap.mobile').removeClass('in'); }); });This does as intended but if a menu item contains a submenu the toggle button wont work, since it’s wrapped inside the parent A element.
Do you have a quick fix for this?
/Erik
March 8, 2017 at 12:41 am #1398696
RupokMemberHi Erik,
Would you specify your issue first? This code is suggested when the toggle doesn’t work as expected for some reason. Are you facing such issue? Let us know why you are using that code.
Thanks!
March 9, 2017 at 2:21 pm #1400988
erik_ragnarParticipantHi,
My issue is that i want my mobile menu to close when i press a link. But if a menu item has children (submenu) the submenu cannot be opened as the script triggers from link elements. (the submenu is within a link element). 😛
March 9, 2017 at 10:16 pm #1401473
Paul RModeratorHi Erik,
Can you provide us your site url so we can take a closer look.
Thanks
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1398273 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
