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.
Here’s how you can add individual links to WordPress gallery images.
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.
Upload the plugin to WordPress
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.
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.
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.
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!