• I am developing a site and installed the Regalway theme.

    http://www.backcountryyukonres.com/

    When the browser is shrunk, or the site is viewed on a phone, etc. the site menu becomes “Pages Navigation Menu” which is supposed to expand when clicked. This works on your demo site http://inkthemes.com/wpthemes/regalfashion/blog/

    On my site, clicking the button does nothing (scrolls to the top of the page as per href=”#”) – it seems the click event was not attached. I am not sure how to debug this.

    I tried the theme on WordPress 3.6 as well; it did not work; same behaviour. I tried playing with the settings in wordpress-admin but nothing seems to help.

    What am I missing?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter retrospectacus

    (@retrospectacus)

    I fixed this. There is a typo in regalway/functions.php line 24/25 which is supposed to include mobile-menu.js:

    change

    wp_enqueue_script('mobile-menu', get_template_directory_uri() . "/js/mobile-menu.js", array(
    'jquery','',true));

    to

    wp_enqueue_script('mobile-menu', get_template_directory_uri() . "/js/mobile-menu.js", array(
    'jquery'),'',true);

    This typo provided bogus prerequisites for the js file which cannot be satisfied, preventing it from being included.

    Regards,

    Thanks! I had the same problem, now solved!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mobile Menu not working’ is closed to new replies.