Smooth scroll offset direct link

Smooth scroll offset direct link

Hi,

We have a menu that links to a different page to a specific div id, we implemented smooth scroll with offset of 100px it works fine on the page itself. But if the user clicks the link from home (page.php/#testi) the offset doesn't work.. any ideas? Thanks..