# How to make container a clickable link?

**URL:** <https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994>\
**Category:** Ask the community\
**Created:** [February 17, 2021, 9:41am UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994 "2021-02-17T09:41:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![eezunn](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@eezunn](https://forum.wixstudio.com/u/eezunn)\
**Post date:** [February 17, 2021, 9:41am UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/1 "2021-02-17T09:41:39Z")

</div>

I am trying to create a card component where the entire card is a clickable link that navigates to a different page. Is there a way to add a link to a container? How can I get this intended behavior?

---

<div class="post-metadata">

**Author:** ![miril](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miril/32/17627_2.png) [@miril](https://forum.wixstudio.com/u/miril)\
**Post date:** [February 17, 2021, 1:34pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/2 "2021-02-17T13:34:50Z")

</div>

Hey @eezunn , there’s no option to add a link to a container itself. You can add links to text, images, buttons, shapes and other ‘content’ elements.  
For example you can add a links to stretched images inside a container.

---

<div class="post-metadata">

**Author:** ![caleb-xu-77](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/caleb-xu-77/32/16286_2.png) [@caleb-xu-77](https://forum.wixstudio.com/u/caleb-xu-77)\
**Post date:** [November 24, 2021, 9:42pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/3 "2021-11-24T21:42:04Z")

</div>

It’s kind of sad how that isn’t a feature. In HTML/CSS, you can just wrap the whole DOM in an anchor tag.  
Not to say that your tool sucks. Just that it would be really convenient to have such a feature.

---

<div class="post-metadata">

**Author:** ![ocarrollcolinj](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ocarrollcolinj/32/24118_2.png) [@ocarrollcolinj](https://forum.wixstudio.com/u/ocarrollcolinj)\
**Post date:** [November 28, 2021, 11:42pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/4 "2021-11-28T23:42:40Z")

</div>

Please look into adding links to containers - I agree with Caleb that it is a necessary feature. Right now, I’m having to add a transparent image to every container and then link to that - very cumbersome.

---

<div class="post-metadata">

**Author:** ![joebankmann](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/joebankmann/32/8563_2.png) [@joebankmann](https://forum.wixstudio.com/u/joebankmann)\
**Post date:** [January 6, 2022, 12:04pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/5 "2022-01-06T12:04:00Z")

</div>

Thanks everyone. To piggyback off Colin’s method, you can also make a button and make its design features transparent, put that within the container and link to that.

---

<div class="post-metadata">

**Author:** ![youcangetderek](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/youcangetderek/32/7658_2.png) [@youcangetderek](https://forum.wixstudio.com/u/youcangetderek)\
**Post date:** [September 17, 2022, 12:53pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/6 "2022-09-17T12:53:30Z")

</div>

+1 on this badly needed

---

<div class="post-metadata">

**Author:** ![AndrewT](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/andrewt/32/32103_2.png) [@AndrewT](https://forum.wixstudio.com/u/AndrewT)\
**Post date:** [September 19, 2022, 5:39am UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/7 "2022-09-19T05:39:16Z")

</div>

as the workaround for this, stretched transparent elements inside the container, could be used, as like buttons, or images. We can understand that this solution is not perfect. Along with this, we keep tracking this thread, thanks all for new feedback.

---

<div class="post-metadata">

**Author:** ![user2880](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@user2880](https://forum.wixstudio.com/u/user2880)\
**Post date:** [July 31, 2024, 7:59pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/8 "2024-07-31T19:59:40Z")

</div>

Any progress on this feature? The workaround of stretched transparent elements doesn’t work when my elements are stacked…

---

<div class="post-metadata">

**Author:** ![V-Blog](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@V-Blog](https://forum.wixstudio.com/u/V-Blog)\
**Post date:** [August 1, 2024, 4:35am UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/9 "2024-08-01T04:35:17Z")

</div>

Use following Code and replace the link -

```javascript
import wixLocation from 'wix-location';

$w.onReady(function () {
  $w("#box1").onClick(() => {
    wixLocation.to("https://example.com");
  });
});

```

Change the ID of container as well.

---

<div class="post-metadata">

**Author:** ![jfriede](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jfriede/32/9362_2.png) [@jfriede](https://forum.wixstudio.com/u/jfriede)\
**Post date:** [October 11, 2024, 6:39pm UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/10 "2024-10-11T18:39:16Z")

</div>

Following…I’m also looking to have the container linked to the dataset for the dynamic page.

---

<div class="post-metadata">

**Author:** ![Sash](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sash/32/2099_2.png) [@Sash](https://forum.wixstudio.com/u/Sash)\
**Post date:** [May 15, 2025, 5:28am UTC](https://forum.wixstudio.com/t/how-to-make-container-a-clickable-link/47994/11 "2025-05-15T05:28:10Z")

</div>

Almost 4 years later and this still hasnt been added. lol!
