Zen Follower
- Join Date:
- Feb 2016
- Location:
- Salem, NH
- Posts:
- 103
- Plugin Contributions:
- 0
Post #1 by amethyst_fairy
Was wondering is there any way to make the main menu sticky on scroll if open.
Thanks
Sandria
Started by amethyst_fairy on 5 Aug 2017, 6:57 PM · Views: 5,845
Zen Follower
Was wondering is there any way to make the main menu sticky on scroll if open.
Thanks
Sandria
Totally Zenned
Sure, concept I can think of would be to use javascript/jquery to alter the css tags of the menu upon it being expanded so that the menu becomes "detached" and floating. Problem with using just the open perspective is that most such menus will auto hide once the mouse has left the menu. In that case, the menu would return to its normal position and the entire operation would need to be reperformed. So, may want to rethink the criteria a little, especially if/when on a mobile device.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Administrator
Zen Follower
I've been trying all day not going to lie. Having trouble figuring out how to keep slimmenu and either make the categories under Shop lock or go to 3-4 columns so people can see. I have tried integrating some of mega-menu code but didn't work have the stick-anything.js but don't know where to put the stickthis;() because of the categories being automatically generated by the slimmenu code in the tpl.mobile.categories. On site https://www.thedragonskeep.net you'll see the shop dropdown goes down past the half of page so either need to break it up in columns or find away to make it stick. It sticks on the mobile so I am guessing I am missing something totally simple. Any pointers would be appreciated.
Thanks
Sandria
Tell staff why this post should be reviewed.