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

    Hi,

    My Anchor links are not working – any idea what can be wrong?

    #1372668

    Hey Michael,

    If you want to use anchor links, then you have to add the anchor as an ID in a Color Section element for example. There is no element on the page you linked to with the ID next-section.

    Best regards,
    Rikard

    #1372670

    But there is a #yellow right

    #1372685

    Hi Rikard,

    I’ve set up a new wordpress, and now it works. I was just starting to build, so it was ok. I have another question:

    Now when I create an anchor (I did this with the arrow in the first section, but also created #grey
    then the theme takes into account 100 pixels (which is where the header bar normally takes place). Could you please indicate to me what code I can write to make sure that it slides through 100 pixels?

    #1372887

    Hi,

    Thank you for the update.

    It seems to be working correctly on our end. When we checked the page above, the document lands or scrolls exactly where the #grey section is. Please check the screenshot below.

    Screenshot: https://1drv.ms/u/s!AjjTfXSRbKTvy2bXWZ9Yc0B2A7F2?e=uneOst

    Do you want to adjust the landing position or increase the scroll offset? Adding this code in the functions.php file should help.

    function avf_header_setting_filter_mod($header) {
    	$header['header_scroll_offset'] = $header['header_scroll_offset'] + 100;
    	return $header;
    }
    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
    

    Best regards,
    Ismael

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