Turn your gallery images into clickable links.

Gallery Custom Links lets you assign custom URLs to any image in your galleries. Instead of opening in a lightbox, images link directly to products, posts, or external sites. Simple fields in the Media Library — no shortcodes required.

Gallery Custom Links — Settings
30,000+ active installs
4.7 average rating
206 reviews

Add custom URLs to images — clicking opens your link instead of a lightbox.

Target and Rel Controls

Open links in new tabs, add nofollow, or set custom aria labels.

Compatible with WordPress Gallery, Gutenberg, Meow Gallery, and more.

Multiple Parsing Engines

Choose HtmlDomParser, DiDom, or JavaScript for best performance.

Links pointing to the current page can be ignored automatically.

Light as a Feather

No settings maze. Set a URL on an image, and it just works.

A gallery image normally does one of two things: open a lightbox, or open itself. If you are building a shop lookbook, a portfolio index, or a page of partner logos, you want the third thing — click the image, go somewhere specific. WordPress has never offered that.

Gallery Custom Links adds the missing fields. Open any image in the Media Library and you get a Link URL, plus Target, Rel and Aria Label. Set the URL and every gallery that uses that image links there instead of opening a lightbox, everywhere it appears, without editing a single gallery.

Because galleries are rendered in different ways by different plugins, you can choose how the links are applied. HtmlDomParser rewrites the HTML and is the most reliable. DiDom does the same thing faster but expects valid markup. JavaScript is the lightest and applies the links in the browser instead of changing your HTML at all.

It works with the native WordPress gallery, the Gutenberg gallery, Meow Gallery, and in practice most gallery plugins that use standard markup and responsive images. Filters let you restrict it to the pages that need it, so it does no work anywhere else.

Free Version

  • Set a Link URL on any image in the Media Library, and every gallery that uses it links there instead of opening a lightbox.

  • Target, Rel and Aria Label

    Open in a new tab, add nofollow or sponsored, and set an accessible label, per image.

  • Native WordPress Gallery, Gutenberg, Meow Gallery, and anything using the standard gallery markup.

  • Three Parsing Engines

    HtmlDomParser for reliability, DiDom for speed, or JavaScript when you would rather not rewrite the HTML.

  • Optionally ignore a link when its target is the page the visitor is already on.

Pro Version

  • Everything from the Free Version

  • A Link column in the Media Library shows which images already have one, so you can review and edit them in place.

  • Filter by Linked Images

    Narrow the library to just the images carrying a custom link, instead of opening them one by one.

  • Priority Support

    Direct access to the development team.

  • Visit the Pro Version

Reviews from WordPress

Written by @cafelog on WordPress Forums

Been using it for years

I have been using it for several years on a couple of websites and it does everything it promises. I have never had a problem with it.