Close

Disable Menu Float

[email protected]
10 years ago
#5792 Quote
Avatar
  • 37
Is there a setting or some css that I can add that will disable the vertical "float" on the menu when the user scrolls up / down the page.  I find that the menu takes up too much space on smaller mobile devices and also flickers a bit upon scrolling so Id like to lock that in its default location.

Thanks!
Support
10 years ago
#5803 Quote
Avatar
  • Moderator
  • 1044
[email protected] wrote:
Is there a setting or some css that I can add that will disable the vertical "float" on the menu when the user scrolls up / down the page.  I find that the menu takes up too much space on smaller mobile devices and also flickers a bit upon scrolling so Id like to lock that in its default location.

Thanks!


Hi Bob,

You can disable this by editing the Themes/Smart/Content/scripts/Smart.js as shown below:

line26: hasStickyNav: false,

Just change the value for the hasStickyNav from true to false.

Hope that helps!
pccruiser
2 years ago
#21838 Quote
Avatar
  • 3
Doesn't work on motion theme. Set to false but the nav still stays.
todor.atanasov
2 years ago
#21843 Quote
Avatar
  • Moderator
  • 249
pccruiser wrote:
Doesn't work on motion theme. Set to false but the nav still stays.


Greetings,

Thank you for reaching out to us!

Besides hasStickyNav, which is responsible for the mobile menu, there is another setting that is used for the desktop - doesDesktopHeaderMenuStick
Best regards,
Todor Atanasov
Nop-templates.com