wordpress手机菜单点击后关闭[关闭](wordpress Mobile Menu not hidden after click [closed])
我做了一个带有一些链接的单页设计。
当我在智能手机上浏览网站时,使用按钮打开主菜单并单击链接(滚动到同一页面),移动菜单不会隐藏,而是放在内容的右侧网站上。
这是链接http://www.sarahspancakecafe.com.sg/
如何解决?
干杯
I made a one-page design with some links.
When I browse the site on my smartphone, open the main menu with the button and click on a link (which scrolls to the same page), the mobile menu isn’t hidden but placed on the right site of the content.
this is link http://www.sarahspancakecafe.com.sg/
How to fix that?
Cheers
最满意答案
尝试这个
$(document).ready(function(){ $('.menu-item-object-custom a').click(function(){ $('.navbar-header button').click(); }); });我在你的网站上试了一下它似乎运作良好。
Try this
$(document).ready(function(){ $('.menu-item-object-custom a').click(function(){ $('.navbar-header button').click(); }); });I tried it on your site and it seemed to work well.
更多推荐
发布评论