Aug 25, 20207:12 AM - bearbeitet Sep 10, 20208:33 AM
HubSpot-Produktteam
Anchor links leading to the wrong section of the page - SOLVED
Anchor links enable you to link a user to a specific location on the same page. You can add anchor links into your HubSpot content via the steps linked here. If you come across an issue where clicking on the anchor links leads you to the incorrect position on the page, this may be because your website has a sticky/fixed header, and the height of this is not being factored into the scroll position of the browser.
You can compensate for this by adding the following code snippet into your page:
Just adjust the top: -100px; to match the height of your website's header. So if for example your sticky header is 150px in height, this results in top: -150px;