Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
On mobile devices and small desktop browser windows, the mobile menu will not appear (and the non-mobile main menu is not available).
Lack of mobile menu renders the theme impossible to navigate on mobile devices/small screens.
Example
The website pictured above is running Drupal 7.34; I have tested without the jQuery Update module enabled, and also with it set to versions 1.7 - 1.10 (presently 1.8 - lacps.net). The desktop main menu works as it should.
Any input much appreciated.
Comment | File | Size | Author |
---|---|---|---|
nexus-mobile-menu-broken.png | 95.21 KB | forbesconrad |
Comments
Comment #1
forbesconrad CreditAttribution: forbesconrad commentedComment #2
forbesconrad CreditAttribution: forbesconrad commentedComment #3
forbesconrad CreditAttribution: forbesconrad commentedComment #4
larymiller CreditAttribution: larymiller commentedupdate superfish.js with latest version.
ftp to your site and replace files.
solve the problem.
Comment #5
jphelan CreditAttribution: jphelan commentedSame issue, updating superfish did not help. jquery_update is set to jQuery 1.7
Getting this error in the console:
Uncaught Error: Syntax error, unrecognized expression: [href=/node/123] jquery.min.js:3
Comment #6
TheWrench CreditAttribution: TheWrench commentedJust installed this theme on a fresh Drupal 7.34 install and can confirm the Mobile Menu works perfectly for me. Something went wrong somewhere with your install.
Comment #7
jphelan CreditAttribution: jphelan commentedIt's working for me on the homepage but not subpages.
Comment #8
jessip CreditAttribution: jessip commentedI had the same problem. Turning of jQuery Update completely solved the issue for me.
Comment #9
yuxinvalo CreditAttribution: yuxinvalo commentedThe same problem, and it works at the localhost but not online....
Comment #10
jbiechele CreditAttribution: jbiechele commentedA possible circumvention for the disappearing menu is posted here https://www.drupal.org/node/2497471#comment-9986891
Comment #11
rafavermo CreditAttribution: rafavermo at La Drupalera by Emergya commentedThis error is fixed when you update your superfish.js file to the latest version 1.7.4. On the issue #2654558 is uploaded the updated patch.
Comment #12
mr B CreditAttribution: mr B commentedI installed the patch and am still receiving an unrecognized expression error: a[href=/contact]
Comment #13
highvrahos CreditAttribution: highvrahos commentedIf you get the following error, then try applying the advice from the wordpress forum to mobilemenu.js:
unrecognized expression error: a[href=/contact]
https://wordpress.org/support/topic/wordpress-45-uncaught-error-syntax-e...