MAGEEWP

Themes for WordPress

Mobile menu does not automatically close when selecting an option  

  RSS

Genty88
(@genty88)
Active Member
Joined:3 weeks  ago
Posts: 7
04/07/2018 11:51 am  

Hi. 

When a user selects an option from the mobile menu, it stays open rather than automatically closing.

Is this a bug? Or is there a way to change this?

Thanks.


ReplyQuote
Genty88
(@genty88)
Active Member
Joined:3 weeks  ago
Posts: 7
17/07/2018 9:19 am  

does anyone actually monitor this forum? ridiculously poor level of support!


ReplyQuote
Genty88
(@genty88)
Active Member
Joined:3 weeks  ago
Posts: 7
17/07/2018 10:28 am  

 Doesn't matter. I've worked out a solution myself. For anyone else having the issue and want to fix it, here is the solution:

Open Editor and locate the main.js file. 

Find the following piece of code:

 $('.main-nav > li ').click(function(){
     $('.main-nav > li ').removeClass('current');
      var css_class = $(this).attr("class");
      $('.'+css_class.replace(/\ +/g,".") ).addClass('current');
     });

and replace it with the following piece:
$('.main-nav > li ').click(function(){
$('.site-nav').slideUp()
});

Make sure you clear your cache etc and this will fix the issue.

ReplyQuote
  
Working

Please Login or Register

Onetone Free WordPress Theme

Recent Posts

Cactus Free WordPress Theme