Auto close mobile menu
Steak House, food and drink theme, is now available on support forum.
- GK User
- Tue Mar 01, 2016 10:35 am
Hi.
I have a one small problem. On old smartphones when you use mobile menu and click on any section page will go to this section but you need to close menu manualy. Is it any chance to config mobile menu to auto close after click on any link in menu. So for example when you open mobile menu and click "Contact" you will go to contact section and menu close automaticly. Thanks for any advice.
I have a one small problem. On old smartphones when you use mobile menu and click on any section page will go to this section but you need to close menu manualy. Is it any chance to config mobile menu to auto close after click on any link in menu. So for example when you open mobile menu and click "Contact" you will go to contact section and menu close automaticly. Thanks for any advice.
-
- Fresh Boarder
- Joshua M
- Tue Mar 01, 2016 11:00 am
Hi,
The problem is visible also on our demo website? or only on your website? Could you provide your website URL? and please let me know which browser/OS are you using on your smartphone?
The problem is visible also on our demo website? or only on your website? Could you provide your website URL? and please let me know which browser/OS are you using on your smartphone?
-
- Moderator
- GK User
- Tue Mar 01, 2016 12:02 pm
Hi. Thanks for reply.
The problem is on my site. On your demo site you don`t use one page layout so is hard to say if the problem is just with my site
The url of site is:
http://paleczkami-sushi.pl
Problem is on every browser on mobiles. I use iphone 5s and 6 myself but we check it on few android phones is well. Thanks for any help.
The problem is on my site. On your demo site you don`t use one page layout so is hard to say if the problem is just with my site
The url of site is:
http://paleczkami-sushi.pl
Problem is on every browser on mobiles. I use iphone 5s and 6 myself but we check it on few android phones is well. Thanks for any help.
-
- Fresh Boarder
- GK User
- Tue Mar 01, 2016 12:17 pm
I found this function for problem:
$(document).on('click','.navbar-collapse.in',function(e) {
if( $(e.target).is('a') && $(e.target).attr('class') != 'dropdown-toggle' ) {
$(this).collapse('hide');
}
});
Anyway do you give me a hand with develop this code to your template ??
$(document).on('click','.navbar-collapse.in',function(e) {
if( $(e.target).is('a') && $(e.target).attr('class') != 'dropdown-toggle' ) {
$(this).collapse('hide');
}
});
Anyway do you give me a hand with develop this code to your template ??
-
- Fresh Boarder
- GK User
- Tue Mar 01, 2016 11:23 pm
Any chance to get some help with this issue ??
-
- Fresh Boarder
- Joshua M
- Wed Mar 02, 2016 9:53 am
Try to add the following code (js/functions.js file):
after:
- Code: Select all
$('#aside-menu li a').click(function() {
gkOpenAsideMenu();
});
after:
- Code: Select all
toggler.click(function() {
gkOpenAsideMenu();
});
-
- Moderator
- GK User
- Wed Mar 02, 2016 4:09 pm
Ok. This working perfect for me. Thanks a lot.
-
- Fresh Boarder
7 posts
• Page 1 of 1