I am trying to link elements to other pages of my website. Please help me with the coding

I want an element of my website to transfer users to another one of my pages upon clicking it. On the WIX editor, I can right click on the item, select properties, and see an entry to define actions upon click. This brings up the coding screen.

The problem is that I am horrible with writing code, and I am afraid of screwing things up. Here is the code that I am using: $w(“#myElement”).link = “/about-me”;

Will this code link users to another one of my pages upon click? If I replace myelement and about-me with the name of the column/strip and the name of the page, it should work right? Do you know of some other function that would help me to set this up?

Hi,

implement function on this element event, such as onClick.

in the page code add:

import wixLocation from 'wix-location';

in the function use:
wixLocation.to(“/about-me”);

see the reference here:

Shlomi