ToC Plugin issues with Fixed Navbar

Hello,

I have a navigation bar with a fixed position and a height of 100px. I’m using a Table of Contents (ToC) plugin that enables auto-scrolling to H2 headings within a RichText content element. However, when I select a link from the ToC, it scrolls to the H2 headings based on the viewport’s position, causing the content to be obscured by the navigation bar.

Basically I want the scrolled H2 to appear 100px from top. How can I resolve this issue?

Thank you.

Hey, there’s no good workaround right now, other than one stupid, adding padding top on your headings, this will recognize heading starting higher, and it would work as offset.

We will see how we can add offset functionality to this plugin soon