Hi,

I have download the the nexus drupal 1.3 version when I re size the browser to check the theme in mobile , for each menu item the nexus theme adds a "Main" link to the sub menu links. I have attached the image. I do not have "Main" in my menus at all.

Thanks for your help in advance!

CommentFileSizeAuthor
nexusbug.png16 KBsf99

Comments

Michael-IDA’s picture

Title: Nexus's mobile menu Bug » Nexus's mobile menu Bug (adds 'Main' entries)

Does the same thing to the top of page menu in a browser when you narrow the browser enough.

Also, the entry directly above the 'Main' item is not selectable and clicking 'Main' paths to the above entry.

oldenboom’s picture

Just did some hacking: the 'Main' is added by js/mobilemenu.js - It wasn't too difficult to find the original version. It's Matt Kersley's at https://github.com/mattkersley/Responsive-Menu. Replacing the mobilemenu.js with the latest version from github does work without any modification (note: the switchwidth is lowered to 480 by default).

Now for that "Main" text. The documentation on the github page is clear:

Any li elements with ul/ol present get converted to an optgroup. As optgroup isn't selectable, a "dummy" option is added at the top of the group with the li's value.

I would have liked the optgroups to be clickable though but that's just not possible with the approach of this script. Tried to dropin-replace the script with SlickNav. Quite promising actually but it does need some modification by someone in the stylesheet.

As my site is not multilingual, I can live with overriding the Main textstring in mobilemenu.js. Feel invited to experiment with SlickNav.