Link column strip to anchor on another page?

Hi,

I have a strip with 3 columns on my homepage, and I want each column to link to a different anchor on a SEPARATE page of my site.

This is what I have been trying:

export function column1_onClick(event) {
wixLocation.to(“/newpage”)
.then( () => {$w(“#anchor1”).scrollTo();};
}

However, Wix tells me that #anchor1 is “not a valid selector”. Anyone tried/encountered something similar?

Thank you for your help!
Zoey

1 Like

Need same