• I noticed that when you access the site through a smartphone and you use the mobile navigation, when you click on a ‘page’ in the navigation the navigation doesn’t automatically close.

Viewing 4 replies - 1 through 4 (of 4 total)
  • nickmeul

    (@nickmeul)

    I have the same problem, any fix?

    Thanks!

    nickmeul

    (@nickmeul)

    I tried doing it with javascript:

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
    <script>
    $("#mobile_menu li a").click(function(){
            $(this).css("display", "none");
    
        });
    	</script>

    but it didnt work since now the menu wont open anymore.
    Anybody know how to adjust this javascript so it’ll work?

    Thanks!

    danny144

    (@danny144)

    I’m having a look at this as we speak, will let you know if I find anything.

    danny144

    (@danny144)

    Okay I have a solution that semi works for you!

    You need to go to wp-content/themes/one-page/js/mobile-menu.js

    Then scroll to the bottom and find the piece of code

    append_to.find('a').click(function(event) {
    event.stopPropagation();

    and change this to

    append_to.find('a').click(function(event) {
    $menu_nav.slideUp(500);
    event.stopPropagation();

    The menu now hides but you have to click it twice to get it to work again, not entirely sure how to change that so it restores it to it’s original state but at least it hides properly and users may just think they hadn’t clicked it properly the first time :p Let me know if it works for you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mobile Navigation Glitch’ is closed to new replies.