Anchors are used which are in the HTML. The browser will always scroll to the anchor, so there's no way to change the scrolling point without moving the anchor point and that's not going to really be possible.
Anchors are used which are in the HTML. The browser will always scroll to the anchor, so there's no way to change the scrolling point without moving the anchor point and that's not going to really be possible.
var $w = $(window);
$w.on('load hashchange', function() {
var hash = (window.location.hash) ? window.location.hash : '';
if (!hash) return;
window.scrollTo($w.scrollLeft(), $w.scrollTop() - 50);
});
In proper code you'd need some additional checks, like checking height of your navigation block and checking if static navigation is even enabled. But that should do.