Archived topic
make custom menu stickye
1 reply · Started by jasond on February 23, 2020
Hi, I tried to replicate all the classes from the main navigation with the sticky option enabled to make the custom menu sticky. Do I need any extra JS to make it work? Thanks
The code below is added via Hook, this page I turned off default main navigation already
<nav id="site-navigation" class="main-navigation align-center" itemtype="https://schema.org/SiteNavigationElement" itemscope="">
</nav>
Thanks
Hi there,
The sticky navigation script doesn't work like that, unfortunately.
Have you tried playing with position: sticky on your custom navigation element?