Add a link to a container box

Question:
How do I add a link to a container box?

Product:
Wix Editor

What are you trying to achieve:
I have a page with a looot of container boxes I setup and I want the whole box to be a button (linked to a local page). It would be possible to replace every box with a shape that can be linked but it would take me forever. So does anyone have a solution?

What have you already tried:
I tried using the .link function and link it within the code but I get an error : Property ‘link’ does not exist on type ‘box’.

You wouldn’t set a link value be assigned to the box. You would simply create an on click event that navigates directly to a specific url.