Home Forums Themes Pasco JS to collapse responsive menu for one page navigation

JS to collapse responsive menu for one page navigation

  • Author
    Posts
  • #36418

    VideoNarrative
    Participant

      Hi supporter !
      My website url : http://www.mpmtestsite5.com
      Description about error:

      Hello, looking for JS to collapse the menu when item is clicked for one page navigation. The closest I have came is something like this:

      (function($){
      $(‘.x-nav-menu_amy-castro-menu a’).on(‘touchend click’, function(){
      $(‘.x-nav-menu_amy-castro-menu’).toggleClass(‘in’).css(‘height’, 0);
      $(‘.toggle-mobile-menu .in’).toggleClass(‘collapsed’);
      });
      })(jQuery);

      I just need the menu to collapse when you click an item and jump to that section of the one page navigation.

      I will include login details in another message.

    Cannot reply in this topic, If you have any issue, please create new topic