Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1398273
    erik_ragnar
    Participant

    Hi,

    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

    #1398696
    Rupok
    Member

    Hi 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!

    #1400988
    erik_ragnar
    Participant

    Hi,

    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). 😛

    #1401473
    Paul R
    Moderator

    Hi Erik,

    Can you provide us your site url so we can take a closer look.

    Thanks

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