Do you want to add custom links to gallery images in WordPress? These custom links can point to any specific page or post on your site, or even to an external site.
But what if you wish to add custom links to individual images inside a gallery? In this article, we will show you how to add custom links to gallery images in WordPress.
Adding Custom Links to Gallery Images
To add gallery custom links functionality to gallery images in WordPress, first thing you need to do is install and activate Gallery Custom Links plugin. For more details, see our step by step guide on how to install a WordPress plugin.
This free WordPress plugin lets you add custom links to your gallery images. It works out of the box, so there are no settings for you to configure. Simply go to a post or page and create a new gallery. You will see the custom link meta fields for individual images in gallery.
You can link an image in the gallery to any post, page, or even an external website. You can also choose whether you would like the link to open in the same or a new window.
The plugin works very well with any other plugins you may be using to display images in lightbox popup or carousel. It also allows you to keep or disable onclick events for an individual image in the gallery.
Adding Custom Links to Single Images
Now, let us also take a look at how to add a custom link to a single image in WordPress. You would upload your image file using the media uploader. Once it is uploaded, you can link it to a custom URL under attachment display settings.
Simple wasn’t it? But this setting is not available when you are creating a gallery in WordPress. You can link a gallery image to either attachment page or media file, but you can not add custom links to individual images in gallery.
We hope this article helped you add custom links to gallery images in WordPress. For other images related problems, check out our guide on how to fix common image issues in WordPress.