How to Add Links to Images in WordPress Gallery Block


If you’re using the Gutenberg gallery block and want the gallery to open up a new tab or link. You’re out of luck because, well, you can’t (by default).

You can do that very easily with regular image blocks. But how do you do that with the gallery? This is something that I was having a lot of trouble with, but I needed it, So I found a workaround, and this is how I did it.

How to add an external link to individual WordPress gallery block

Here’s how you can add individual links to WordPress gallery images.

  1. Download the gallery custom links plugin

    How to add a link to an image in a WordPress gallery block using Gutenberg editor.

    I found this plugin called Gallery Custom Links, and it’s supposed to be able to do exactly what I’m looking to do, which is to open the gallery in a new tab and go to a new page. So downloaded.

  2. Upload the plugin to WordPress

    How to add a link to an image in a WordPress gallery block using Gutenberg editor.

    Let’s go to plugins, and add a new plugin. After uploading, you don’t have to do anything with this because the plugin works right out of the box.

  3. Add links to images

    How to add a link to an image in a WordPress gallery block using Gutenberg.

    We also need to go to the media library and add links to the images that you want to open. Go to the image and scroll down, and here you’ll see this link URL.

So, that is how you add custom links to specific images in your gallery blocks on WordPress Gutenberg.

Are you a visual learner? Check out my video below, titled “How to Add a Link to An Image in A WordPress Gallery Block Using Gutenberg Editor?” from my YouTube channel, as I show you all this firsthand.

A video titled “How to Add a Link to An Image in A WordPress Gallery Block Using Gutenberg Editor?” from my YouTube channel.

Frequently asked questions (FAQ)

Do you still have questions? Below are some of the most commonly asked questions about making a WordPress website.

What is WordPress?

WordPress is a content management system (CMS) that allows users to easily create and manage websites. It is open-source software, which means that it is free to use and modify.

Is WordPress free to use?

Yes, WordPress is free to use. There are no costs associated with downloading or installing WordPress. However, you may need to purchase a domain name and hosting plan to use WordPress to create a website.

What are the requirements for using WordPress?

To use WordPress, you will need a domain name and a hosting plan. You will also need to have a web server that meets the minimum requirements for WordPress, which includes a PHP version of 7.4 or higher and a MySQL version of 5.6 or higher.

Can I use WordPress to create any type of website?

Yes, WordPress can be used to create any type of website, including personal blogs, business websites, e-commerce stores, and more. There are also many themes and plugins available for WordPress that can be used to customize the look and functionality of your website.

Conclusion

So, what do you think? Let me know in the comments below (I read and reply to every comment). If you found this article helpful, check out my full blog and be sure to subscribe to my YouTube channel. Thanks for reading!

Leave a Comment