Made in Europe, buy from Europe.

Black Friday

65% off Annual plans

25% off Lifetime · 10 per week

Ends December 2

Get the deal →

How to add links to images in a WordPress gallery

Updated 2 min read

You can add links to images in your WordPress gallery with Modula. This is useful when an image should open an external URL, which is a page on another website. You set this up from the page where you edit your gallery.

You add a link to one image at a time.

  1. Go to Modula → Galleries and open your gallery.
  2. Click an image in the preview, then click Edit image on it.
  3. Set On click to Custom link.
  4. Paste the address.
  5. Turn on Open link in a new browser tab if visitors should stay on your page.

    The On click setting of an image set to Custom link, with the link and the new tab option

To stop using the link later, set On click back to Gallery setting.

What visitors see when they click

What happens when a visitor clicks depends on the gallery’s Lightbox > On click setting. The lightbox is the pop-up that shows a large image.

To change it, click Lightbox in the left rail and pick an option under On click.

The On click list open in the Lightbox section, with No link, Go to URL, Open in lightbox and Lightbox, or link when set
  • Open in lightbox: Every image opens in the lightbox.
  • Lightbox, or link when set: Images with a link open it. The others open in the lightbox.
  • Go to URL: Images with a link open it.
  • No link: Images are not clickable. An image with its own link still opens that link.

Note: Image links can be web addresses (https://…), email addresses (mailto:…), phone numbers (tel:…) or links to pages on your own site (/about/). Any other kind of link is removed when you save the image.

Tip: To make an image open a gallery in lightbox when you click on it, see this tutorial on the Modula Link shortcode.

You can learn more about these settings in Lightbox & Links. If you have any other questions, reach out to us anytime. We are always happy to help.

Was this page helpful?
0 0

Still stuck?

Can’t find the answer?

Write to us with what you tried and what you expected to happen, and we’ll help you sort it out.