Adding URLs to gallery images helps visitors learn more about the products, images and photos in the gallery, leading to more conversions and encouraging visitor interaction.
Why add links to gallery images in WordPress?
Use the gallery block to display a collection of images in a beautiful layout, perfect for displaying your WooCommerce Products, Features, Photosetc. By linking a gallery image to a page, post or external page, it allows visitors to learn more or take action, such as purchasing a product. This method not only keeps visitors engaged but also increases conversions. Additionally, affiliate links can be added to stock images to earn more revenue.
![Images[1] - How to add custom links for gallery images in WordPress - Photon Flux | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605513357.png)
Here are two ways to add custom links to gallery images in WordPress:
Method 1: Use the built-in Insert Link button (no plugin required)
It is possible to link to any page or post on your WordPress site using the row of buttons displayed above each image in the gallery block. This method is quick and easy and does not require any additional plugins. However, this method cannot link to external pages.
The steps are as follows:
1.Creating Gallery Blocks::
- Go to you.Want to create a gallerytabsFace or PostClick on "+" buttonThe
- Enter "image archive" and select the correct block.
![Images [2] - How to add custom links to gallery images in WordPress - Photon Flux Network | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070603404391.png)
- To add an image: click "media library"or"Uploading files" option, select the image to be added.
- After selecting the image, click "Create a new gallery", then click on "Insert gallery"The
![Images [3] - How to add custom links to gallery images in WordPress - Photon Flux Network | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070603405947.png)
2.Add link::
- Click the image to which you want to add a link.
- In the toolbar, click "Insert link"Button.
![Images [4] - How to add custom links to gallery images in WordPress - Photon Flux Network | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605444291.png)
- Enter the name of the page or post you want to link to, and when the correct link appears, click it.
![Images [5] - How to add custom links to gallery images in WordPress - Photon Flux | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605451128.png)
- If you want to open the link in a new tab, click on the small down arrow to enable the "Open in new tab" slider.
![Image [6] - How to add custom links for gallery images in WordPress - Photon Flux | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605455074.png)
3.Publish or update::
- After completing all settings, click"Release."Or."update" to make the changes effective.
![Image [7] - How to add custom links for gallery images in WordPress - Photon Flux | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605460413.png)
Method 2: Use the "Gallery Custom Link" plugin (suitable for reusing images)
If you want to link to an external page or website, you can use the "Gallery Custom Links" plugin. This free plugin allows you to add links to images directly in your media library, and is suitable for situations where the same images and links are reused in multiple locations.
The steps are as follows:
1,Install and activate the plugin::
- Install and activate "Gallery Custom Links"Plugins.
2,Creating Gallery Blocks::
- Go to the page or post where you want to create the gallery.Click on the "+" buttonThe
- Enter "image archive" and select the correct block.
![Image [8] - How to add custom links for gallery images in WordPress - Photon Flux | Professional WordPress Repair Service, Worldwide, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605463736.png)
- Click on the "Media Library" button and select the image you want to add.
3,Add link::
- In the right-hand menu, find "Link URL"Settings.
![Images [9] - How to add custom links to gallery images in WordPress - Photon Flux Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605495215.png)
- Enter the URL to link to.
- Use"Linking Objectives"The drop-down list selects whether the link opens in a new tab or the current tab.
4,Publish or update::
- After completing the settings, click "Create a new gallery".
![Images [10] - How to add custom links to gallery images in WordPress - Photon Flux Network | Professional WordPress Repair Service, Global Reach, Fast Response](https://www.361sale.com/wp-content/uploads/2024/07/2024070605500939.png)
- Click "update"or"post"To bring the gallery online.
summarize
With these two methods, it's easy to add custom links to your gallery images in WordPress to enhance your website's interactivity and user experience. Whether you need to link to an internal page or an external website, these methods will meet your needs and help you better showcase and promote your content.
Link to this article:https://www.361sale.com/en/12687The article is copyrighted and must be reproduced with attribution.





















![Emoji[wozuimei]-Photonflux.com | Professional WordPress repair service, worldwide, rapid response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![Emoticon[baoquan] - Photon Wave Network | Professional WordPress Repair Services, Worldwide Coverage, Rapid Response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments