Using anchors on dynamic title pages

Hey!

The Velo Forum might be able to help best (https://community.wix.com/velo/forum) but while you’re here, I’ll see what I can do :slight_smile:

$w( “#anchor” ); should be the element you want to scroll to (such as a section, image etc.)

And in Velo, to scroll to an element, you’d use .scrollTo() instead of .scrollIntoView(). Here’s the API reference - scrollTo - Velo API Reference - Wix.com

Also make sure it’s contained within the onReady (There should only be 1 onReady on the page).

The code might look something like this:

$w.onReady(function () {
    $w("#button").onClick(() => {
        // Replace "anchor" with the ID of the anchor element// that         you want to jump to
        const anchor = $w("#anchor");
        anchor.scrollTo();
    });
});

Hope that helps.