Dear @justfunk
look here:
I added: var top = el.offset().top+100;
<script>
jQuery(document).on( 'click', 'a[href^="#"]', function(e){
e.preventDefault();
var hash = jQuery(this).attr('href');
var el = jQuery(hash);
var top = el.offset().top+100;
jQuery('html, body').animate({
scrollTop: top
}, 300, 'swing',
function() {
window.location.hash = hash;
}
);
} );
window.laytheme.on('newpageshown', function(){
var hash = window.location.hash;
var el = jQuery(hash);
if(el.length > 0) {
var top = el.offset().top;
window.scroll(0, top);
}
});
</script>
Best!
Marius