Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1188191

    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!

    • This topic was modified 4 years, 8 months ago by brockwatson.
    #1188743

    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

    #1188889

    Thanks. Theme updated and still having the same issue.

    #1189519

    Hello… just wanted to follow up on this as we are still having the issues. Thanks!

    #1189566

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.