Archived topic
Anchor links h2 and menu sticky
7 replies · Started by Jesús on December 2, 2018
Hello!
I´ve activated the menu sticky (persistent) while I do scrolling. But when I put a anchor to h2 and I do click, the title of h2 where I´m is hidden to menú sticky.
Are there any solution to have a space between menu sticky and h2 with anchors?
Thank you!! =)
Hi there,
The best thing you can do is use our smooth scroll option: https://docs.generatepress.com/article/smooth-scroll/
That will make sure your anchor appears below the sticky navigation.
Let me know if you need more info :)
Thanks! :)
When I have activated smooth option, the space where I left the anchor is lower (it should be on the contrary, upload a white space to see the h2).
What I can do?
Thank you!
Hi there,
would you be able to activate the smooth-scroll as Tom commented here and then let us know.
Hello!
Sorry but I can´t to do that this works :(
I´ve activated this:

But I´m going to do clic to h2 and h2 continue up (down to menu sticky):
Can you help me please?
Thanks
Hi there,
for the Smooth Scroll to work you have to add the smooth-scroll class to the menu items. Do this by going to Appearance > Menus. In the top right hand corner select Screen Options and Check the CSS Classes option. You can then add the class to each menu,
This work! :)
Thank you men! :)
Glad we could help! :)