This code in the flyout-menu.php
$link = 'href="' . "#" . '"';
is whats making a sub menu without a link scroll the page to the top, this is a pain when using
a small screen such as a phone cause you have to scroll back down to the menu button.
What should i change the # to, to stop it from scrolling the page to the top please?
Have you tried removing the code that has no link?
Umm… that would likely break the html generated.
Sorry Simon, the code for the page without a link= in the XML was necessary to keep the correct behaviour of the flyout lists since their behaviour is tied to tags. Removing the default link would mean the flyout wouldn’t happen. Such is CSS.