• Resolved maikpt

    (@maikpt)


    Hi, great job with this theme.
    In my implementation the headings have a top margin and are not on exactly on top of each block. When I click the anchors in the menu, triggering smooth scrolling, it stops just on the header position, making them look glued to the menu.
    I would like to subtract an offset to the scroll destination so the margin above the headings would be visible.
    Do you have any suggestion on how make that work?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @maikpt,

    Glad you like it! It’s a bit difficult without seeing the page, but from your description, it sounds like you could add HTML blocks before the headings and add a <a id="#location"></a> element to it. You’d then point the menu items to the #location id, and the scroll should take you to above the top margin of the heading.

    — Anders

    Thread Starter maikpt

    (@maikpt)

    Thanks for your swift reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘smooth Scroll offset’ is closed to new replies.