Code error for mobile menu

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    Ken
    June 26, 2015 at 2:29 pm #46321

    I have a single page website, but needed to use the mobile menu for the client, and I was having issues with the mobile navigation not closing after a user selects a nav item. I went through the jquery.custom.js file and found the following:

    $j(‘#mobile-menu #menu-main li a’).on(‘click’, hide_mobile_menu);

    When I reviewed the DOM I found that #menu-main dosen’t exists as a child of #mobile-menu. So once I removed this selector from the code the menu now closes after a user clicks on a menu item.

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.