Hi,
My Anchor links are not working – any idea what can be wrong?
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
But there is a #yellow right
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?
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