---
title: How to Add a Link to Images in a WordPress Gallery
description: "> **At a glance:** Plan: Core plugin · Set per image · Last checked: Galleryberg 1.2.1 (November 2026) To make a gallery image open another page, select the image inside the Galleryberg gallery, click the **Link** button in the image…"
url: "https://galleryberg.com/docs/how-to-add-a-link-to-images-in-a-gallery/"
updated: "2026-11-14"
category: Image Settings
---

# How to Add a Link to Images in a WordPress Gallery

> **At a glance:** Plan: Core plugin · Set per image · Last checked: Galleryberg 1.2.1 (November 2026)

To make a gallery image open another page, select the image inside the Galleryberg gallery, click the **Link** button in the image toolbar, paste the URL and press Enter. Links only work when the lightbox is off for that gallery, because with the lightbox on, clicking an image opens the lightbox instead.

## Links and the lightbox

| Gallery setting | What happens when a visitor clicks an image |
| --- | --- |
| Enable Lightbox off, image has a link | The link opens |
| Enable Lightbox off, no link | Nothing happens |
| Enable Lightbox on | The lightbox opens, even if the image has a link |

Sometimes you may want visitors to **click an image in your gallery and open another page or URL**. Galleryberg allows you to add links to individual gallery images directly from the block toolbar.

This guide will show you how to add links to gallery images in just a few steps.

## Add a Link to a Gallery Image

To add a link to an image inside your gallery:

1. **Click on the image** inside the gallery to select it.
2. From the toolbar, click the **Link icon**.
3. **Paste or type the URL** you want the image to link to.
4. Click the **Apply icon** to save the link.

![](https://galleryberg.com/wp-content/uploads/2026/03/Adding-a-link-to-an-image-of-the-Galleryberg-Gallery-1024x535.png)
Click to enlarge the image

### Important Note About Lightbox

If the **Lightbox option is enabled**, the image link will **not work**. This happens because the lightbox opens the image instead of the link.

To make image links work properly, you need to **[disable the Lightbox option](https://galleryberg.com/docs/how-to-enable-and-use-lightbox/)** from the Galleryberg block settings.

## Related docs

- [How to Use the Lightbox](https://galleryberg.com/docs/how-to-enable-and-use-lightbox/)
- [How to Replace Images](https://galleryberg.com/docs/how-to-replace-images-inside-wordpress-galleries/)
- [Galleryberg Settings Reference](https://galleryberg.com/docs/galleryberg-settings-reference/)

## Frequently asked questions

### **Can I link gallery images to different pages?**

Yes. Each image has its own link. Select an image, click Link in its toolbar and add a URL. Repeat for each image.

### **Why does my image link not work?**

The lightbox is probably on. With Enable Lightbox turned on, clicking an image opens the lightbox instead of the link. Turn the lightbox off in the Lightbox panel for that gallery.

### **Can a gallery image link open in a new tab?**

Yes. In the link popover, use the option to open the link in a new tab before you apply it.

### **Do image links carry over when converting a core Gallery block?**

Yes. Converting a core WordPress Gallery block to Galleryberg keeps each image's link settings.
