Anchor Link Offset to Other Pages with Fixed Header Size

Here is a snippet of code that will link to an anchor link on another page with a fixed offset which allows for a fixed header size, so the link appears further down below the header of further down the page.

The code snippet is documented.

If you know the pixel dimensions instead you can add the number as appose to the offsetsize variable, like so…

("html, body").animate({scrollTop: anchorLink.offset().top - 350 }, 500);