-
Berms
Hi Guys
When I create a table of contents in a blog post and use an html anchor to get to that section of the post, when you click on the link in the table of contents it takes you to the section but the header is hidden behind the menu. Is it possible to make it so that the header falls under the menu and is not hidden when clicking on the link?
Thanks
-
David
Hi there,
1. go to Customizer > General and enable the Smooth Scroll option
2. add the PHP Snippet provided here:https://docs.generatepress.com/article/generate_smooth_scroll_elements/
This will make all links on the page trigger the smooth scrolling
-
Thank you.
This is now working as hoped.Champions 🙂
-
David
Glad to be of help
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.