I am trying to create a simple internal site link using Wix code.
import wixLocation from “wix-location”;
export function gallery2_click(event, $w,) {
wixLocation.to("/order-online");
}
Any ideas?
Many thanks. Also general information to help me properly understand the syntax of the code for future sites appreciated.
Hi!
Please post a link to your website so one of our wix expert could check it out.
Doron.
Hi Doron thanks for your reply. I imagine this should just be a standard code snippet.
When user clicks ‘gallery2’ I want them to go to ‘/0rder-online’.
Here is a screenshot. What should the code be?
Hi!
Try to put the import statement in the first line of the code.
Anyway, heres the wix location API. Make sure you follow all the steps and that you send the correct location in the to( ) function.
Best of luck!
Doron.
Ok thanks. Putting the import line at the beginning of the code panel has not helped.
For now I don’t need this function after all but if and when I figure it out I will post it here.