I’m currently working on enabling options for this but in the meantime, if you open the file wp-localscroll.php and change the following:
// When the document is loaded...
jQuery(document).ready(function($) {
// Scroll initially if there's a hash (#something) in the url
$.localScroll.hash( {
target: 'body', // Could be a selector or a jQuery object too.
duration:1500
});
/**
* Scroll the whole document
* NOTE: I use $.localScroll instead of $('#navigation').localScroll().
*/
$.localScroll({
target: 'body', // Could be a selector or a jQuery object too.
duration:1000,
hash:true
});
});
to
// When the document is loaded...
jQuery(document).ready(function($) {
// Scroll initially if there's a hash (#something) in the url
$.localScroll.hash( {
target: 'body', // Could be a selector or a jQuery object too.
duration:1500,
offset: { top: -200 } //offset by the height of your header (give or take a few px, see what works for you)
});
/**
* Scroll the whole document
* NOTE: I use $.localScroll instead of $('#navigation').localScroll().
*/
$.localScroll({
target: 'body', // Could be a selector or a jQuery object too.
duration:1000,
offset: { top: -200 }, //offset by the height of your header (give or take a few px, see what works for you)
hash:true
});
});
See if that works