[Resolved] Main navigation menu overlaps HTML anchors Hs

Home Forums Support [Resolved] Main navigation menu overlaps HTML anchors Hs

Home Forums Support Main navigation menu overlaps HTML anchors Hs

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1637414
    Victor

    Hi!

    I tried to find a solution, but I cannot find it within your forum.
    Whenever I a button that links to an HTML link, the Main Navigation Menu overlaps H2s.
    I would like to replicate the same “offset configuration” of TOC (table of content). If I click the same link through TOC, offset is just perfect!
    Could you please tell me how to offset the main navigation menu?
    Thanks!

    #1637502
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try the smooth scroll option?
    https://docs.generatepress.com/article/smooth-scroll/

    It should compensate for the sticky navigation height.

    #1637870
    Victor

    Hi! Not working.

    Smooth Scroll Option was already ticked on Customize/General

    I inserted smooth scroll class to the first H2 of the page below and is not working.

    Please check. Thanks.

    #1637884
    Victor

    Please, have a look at this new example.

    #1637936
    David
    Staff
    Customer Support

    Hi there,

    the GP Smooth Scroll works like so:

    1. The smooth-scroll class is added to the button / link – not the Element it scrolls to.
    E.g

    <a class="smooth-scroll" href="#section-1">Scroll to section 1</a>

    Scrolls to:

    <h2 id="section-1">I am section 1<h2>

    2. It only works if the href links to the same page and the URL is only a #

    #1638021
    Victor

    Hi!

    Thanks for the detailed explanation. It works now.

    But, as you said, on the same page.

    Is there any way to make it work with an href linking to another page?

    It is very important for me.

    Thank you VERY much!

    #1638036
    Victor

    Hi! Don’t worry people!

    I solve it with a separator and a spacer (above the H2) adding the html anchor to the separator…back to the basics!

    Thanks anyways.

    #1638128
    David
    Staff
    Customer Support

    Glad to hear you found a solution 🙂

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