Archived topic
Secondary navigation going back to the top also when scrolling down
5 replies · Started by Torsten on February 7, 2022
Hi Elvin,
Thanks for your quick reply 🙂
I would like to have the secondary nav going back to the top also when scrolling down (not going underneath the primary nav) so it should be always on top after the initial load of the page, scrolling down the page down, and scrolling up again.
I like that neat delayed fade effect of the primary nav when scrolling.
I tried with CSS:
#sticky-navigation { top: 42px !important;}
.main-navigation { margin-top: 42px; }
but that leaves a gap underneath the secondary nav when loading the page initially so I think it needs to be included in your script to work properly.
I hope that all makes sense to you.
Cheers,
Torsten
Hi Torsten,
Can you kindly provide a link to the site in question?
You may use the Private Information field in doing so. Here is a link you may refer to with regards to this:
Hope to hear from you soon!
Hey Fernando,
Hope that helps.
Thanks a lot,
Torsten
Thank you for getting back to us Torsten!
Can you try adding this CSS and see how it goes?
nav#secondary-navigation {
position:absolute;
top:0;
}
Hope to hear from you soon! :)
Hey Fernando,
That really worked! :-)
Thanks so much,
Torsten
You’re welcome Torsten! Glad that worked! Feel free to reach out anytime if you’ll need assistance with anything else. :)