In my post, I show you how to add a link to an image in WordPress step by step. This works for images you have already uploaded to your blog and new images. WordPress makes it easy for you to add links to your website images.
How to add links to your images quick guide
First, upload your image to your blog post. After the image appears in your post, click on the image, a set of options will appear on the right-hand side Select ‘link settings’, underneath ‘link to’ is a dropdown menu. In the dropdown menu, select ‘Custom URL’ and paste your link in the box. Now you have added a link to your image.
Let’s do that step by step.
- Upload your image to your WordPress blog post
- Adding a link to an image
- Publish your post and test your link
- How to add a link to an image video tutorial
Upload your image to your WordPress blog post
First, let’s upload an image to our blog post. I have created an example blog post, I will upload an image to this post.
To upload an image in Gutenberg, you click on the plus icon.
After you click on the plus icon, you get this popup menu. The most used blocks will show here. I can see ‘Image’ in the popup if you don’t see ‘Image’, type image into the search box and it will appear.
I am going to click on ‘Image’. Now an ‘Image’ block will appear, like this.
To upload an image, you can select the ‘Upload’ link, or you can drag your image from your computer to this block.
Here is my uploaded image.
Adding a link to an image
First, click on the image that you want to add a link to. After you click on an image, image options will appear on the right-hand side of your editor screen.
On the right, we have options to add ‘Alt text’, ‘Image size’, ‘Image dimensions’, and ‘Link settings.’ It is the option ‘Link settings’ we need. Click on the drop-down under ‘Link to’.
Now, we have three options, ‘Media file’, ‘Attachment page’, and ‘Custom URL’. The option we need is ‘Custom URL’ when we click on that we get this.
I am going to add a link to my website homepage, www.newblogr.com, to do that, I paste my homepage URL into the ‘Link URL’ box on the right.
Below the box you enter your destination URL, you have an option for the link to open in a new tab. If you want the link to open in the same tab, leave this setting in the default position, to change move to the right.
Publish your post and test your link
Once you have finished writing or updating your post, it is time to view your post.
This is my published post in a new browser tab.
To check if this image has a link, I hover my mouse over the image and if there is a link, the destination URL will appear in the bottom left of my screen.
When I click on this image, I go to my website homepage.
That is how you add a link to an image in WordPress.
How to add a link to an image video tutorial
I love the new WordPress Gutenberg editor, it makes blogging tasks a lot easier.
The learning curve when you first use it is difficult, but when you come through that, it is a fantastic tool for blogging.
Adding a link to your images is a task that takes a couple of clicks. First, click on your image, then from the ‘Link to’ drop-down menu on the right select ‘Custom URL’. Paste your destination URL in this box. If you want this link to open in a new browser tab, don’t forget to slide the button to the right.
Update or publish your post, and your link is live.
All your images should have ‘Alt Text’ too, for SEO. To find out how to add this to your images, check out my ‘How do I add alt text to an image in WordPress?‘ post.
If you have any questions regarding this post, please ask them in the comments box below. I reply to everyone.
If you would like me to do another post about tasks in WordPress, leave me a comment.
I look forward to reading your questions and comments.