# Wix Editor: Linking an Element to a Gallery Image

Source: https://support.wix.com/en/article/wix-editor-linking-an-element-to-a-gallery-image (updated 2025-07-02)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Link an element to a gallery image to promote exciting and important content on your site. This is especially useful if you use images to showcase news or information, as visitors can access and view the image with just one click.

![A live site. The cursor is hovering over a button that links to an image.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/651c25b0-2d60-43c8-addf-1df2fd575568/2022/06/24/c645128a-5260-431e-88b6-b6fe47de31c0/ac483a7a-f80d-498c-85fe-1f45c4c9faa4.png)

---

## Step 1 | Copy the image URL

Open and copy the URL of the image on your live site to get started. Make sure that you've published your site first, as you can't retrieve the URL from inside the Editor.

### To copy the gallery image URL:

1. Open your live site.
2. Navigate to the page the with the relevant gallery.
3. Click your chosen image in the gallery to expand it.
4. Copy the URL of the image from the browser bar.

![An image has been expanded on a live site. the URL is highlighted.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/651c25b0-2d60-43c8-addf-1df2fd575568/2022/06/24/efc84b06-ecfd-4a17-bab6-13c23e8783ab/75648909-9f1c-425d-8380-8304986d72ed.png)

> **Tip:** You can open your live site from the top bar of the Editor. [Learn how to view your published site](https://support.wix.com/en/article/wix-editor-publishing-your-site#viewing-your-live-site)

---

## Step 2 | Add the link to the element

Once you've copied the URL, you can add it as a link to an element on your site. Some popular elements you can link to images include buttons and text headings.

### To link the element to the image:

1. [Open the Wix Editor](https://www.wix.com/my-account/site-selector/?title=&buttonText=&actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7B%7BmetaSiteId%7D%7D%3FeditorSessionId%3D%7B%7Besi%7D%7D%26).
2. Click the relevant element.
3. Click the Link icon ![](https://d2eyqiy4n03ve6.cloudfront.net/12345678-1234-1234-1234-1234567890ab/2015/08/06/dcbf59c4-985c-4a5e-a55e-8d028e34ff7a.png).
4. Click **Web Address** from the menu on the left side of the panel.
5. Paste the image URL into the field titled **What's the web address (URL)?**.
6. (Optional) Select whether the image opens in the same or a new window.
7. (Optional) Choose the [link rel attribute](https://support.wix.com/en/article/wix-editor-adding-a-link-to-an-element#advanced-seo-settings) under **Advanced SEO Settings**.
8. Click **Done**.

![The link panel in the Editor. The image URL has been entered.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/651c25b0-2d60-43c8-addf-1df2fd575568/2022/06/24/ed564841-4f69-4dd0-95f4-7e67e914530b/89fbf334-6028-41bd-98dd-477bb026c5b8.png)

> **What's next?**
>
> * Publish your changes to see the link in action. [Learn how to publish site changes](https://support.wix.com/en/article/wix-editor-saving-previewing-and-publishing-your-site#publishing-your-site)
> * You can also link gallery images to other locations, so visitors can click them to go to the relevant content. [Learn how to add links to gallery images](https://support.wix.com/en/article/wix-editor-adding-a-link-to-gallery-images)
