Site logo

Archived topic

Table of contents

1 reply · Started by John on April 8, 2021

Viewing posts 1–2 of 2

I dont know if in should ask this here. But you guys have by far the best customer support i know.

I was wondering if i could fix a problem on one of my pages. I added a table of contents, but whenever i click one of the item it takes me a bit too far down. Because of this the title, which is the same as in the table of contens, (H2) wont show. Its because my menu bar is sticky i think.

So the menu bar is on top of the title. IS there a way i can make sure the title (h2) shows. So a way when clicking a link from table of contents that it WONT scroll down a bit too far.

Thanks a lot

Hi there,

can you disable the smooth scrolling feature in the Table of Contents ?

If so then with that disabled you can:

1. Enable the Smooth Scroll option in Customizer > General.
2. Add this PHP Snippet to the site so all links will use the GP Smooth scroll:

https://docs.generatepress.com/article/generate_smooth_scroll_elements/

GP's smooth scroll takes the sticky navigation into account :)

This archived topic is closed to new replies.