[Resolved] Anchor links h2 and menu sticky

Home Forums Support [Resolved] Anchor links h2 and menu sticky

Home Forums Support Anchor links h2 and menu sticky

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #746352
    Jesús

    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!! =)

    #746379
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #746397
    Jesús

    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!

    #746579
    David
    Staff
    Customer Support

    Hi there,

    would you be able to activate the smooth-scroll as Tom commented here and then let us know.

    #746649
    Jesús

    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

    #746840
    David
    Staff
    Customer Support

    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,

    #746912
    Jesús

    This work! 🙂

    Thank you men! 🙂

    #746915
    Tom
    Lead Developer
    Lead Developer

    Glad we could help! 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.