Jump links scrolling busted when header not fixed
-
From wp-content/themes/bento/includes/js/theme-scripts.js:
if ( window.location.hash ) { var bento_cleanhash = window.location.hash.substr(1); if ( $str('#' + bento_cleanhash).length ) { if ( bentoThemeVars.fixed_menu == 1 ) { var bento_headerHeight = $str('.site-header').outerHeight(true); } scrollPosition = $str('#' + bento_cleanhash).offset().top - bento_headerHeight - 10; $str('html, body').animate( { scrollTop: scrollPosition }, 1 ); } }
This fails when
fixed_menu != 1
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Jump links scrolling busted when header not fixed’ is closed to new replies.