Tagged: smooth scroll
When clicking on a link with a smooth scroll anchor the top of the section is going behind the header and menu instead of under (menu is sticky). Is there a way to make the sections start below the menu without adding a white space at the top of each section (tried that and it looks bad if there is any manual scrolling. Below is a link with an example… will have this feature on multiple pages and sections. Thanks!
Hey brockwatson,
First off, could you try updating the theme to the latest version (4.7.3) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.
Best regards,
Rikard
Thanks. Theme updated and still having the same issue.
Hello… just wanted to follow up on this as we are still having the issues. Thanks!
Hi,
Thank you for the inquiry.
You can use this filter in the functions.php file to adjust the value of the header scroll offset and influence the scroll position when clicking an anchor.
add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
function avf_header_setting_filter_mod($header) {
$header['header_scroll_offset'] = $header['header_scroll_offset'] + 48;
return $header;
}
This should decrease the scroll distance.
Best regards,
Ismael