Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1378625
    justindefoer
    Participant

    First off all i want to say im sorry that i ask this question, i have seen this question all over the forums almost scared to asked again :P.

    But i want my mobile menu closing after i clicked on a menu item, but not any of the solutions on the forums, not any javascripts or anything else seem to work. could you please help me im out of ideas how to fix it.

    http://www.hennequinto.nl/home

    the latest piece of code i tried is this one, but not working on my iphone at all.

    (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);

    thank you in advance

    #1378820
    Jade
    Moderator

    Hi there,

    Please try this code:

    jQuery(function($){
      
      $('.mobile .x-nav a').on('touchend click', function(){
        $('.x-btn-navbar').click();
      });
    
    });

    Hope this helps.

    #1378903
    justindefoer
    Participant

    Nope sorry doenst work, also cleared the cache of my browser didnt work.

    #1379345
    Paul R
    Moderator

    Hi,

    You can try this code instead.

    
    
    jQuery(function($) {
        $('.ubermenu .ubermenu-target').on('touchend click', function(){
              $('.ubermenu-responsive-toggle').click();
        });
    });
    

    Hope that helps.

    #1379728
    justindefoer
    Participant

    Worked like a charm!
    This is why i love x theme so much always a solution!!

    Thanks!

    #1379797
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

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