I want a strip in my page to function as a button that links to another part of the site.
Right now my (entire page) code looks like this:
$w.onReady( function () {
});
import wixLocation from “wix-location”;
export function columnStrip10_click(event, $w) {
wixLocation.to.to(“/graphic-design”,)
}
What am I missing?
A fixer-up that I can copy n’ paste without going through seventy-two thousand pages of Corvid documentation would be preferable, and very appreciated.
google “events available on columnStrip”
also wixLocation is coded like this:
wixLocation.to(“/graphic-design”);
Thanks, that helped!
Dunno what exactly is doing the job, but it works now.
Looks like this rn, old lines + new event are all there, and when I remove the old code it bugs out, so I just left it…but everything works:
$w.onReady( function () {
});
import wixLocation from “wix-location”;
export function columnStrip10_click(event, $w) {
wixLocation.to(“/graphic-design”);
}
$w( () => {
$w(“#columnStrip10”).onClick( (event, $w) => {
wixLocation.to(“/graphic-design”);
} );
} );
------thanks again
~Brandon E
Is anyone still able to help with this? I’m completely new to it, so am wondering how I figure out how to write the location in which I want it to link to? E.G. “wixLocation.to…”