How to Add a Link to Image in WordPress: Giving Credit to the Source

Writing your first WordPress blog post is easy, and you will enjoy doing that. But, sometimes you need to add beautiful images with a credit link to their source. This is legally important for images and content that require a credit link.

Today, you’ll learn how to add a link to an image in WordPress. It’s simple, easy and you will avoid any copyright or legal issues with people, Google, and other search engines.

Adding links to image captions

The image caption is the section at the bottom of each image, where you can write the image source or other information related to that image. Generally, new bloggers and site owners never use the caption area of their images, or they add some words there.

The most important thing about the image caption box is that you can add both, normal and HTML text. So, you can easily include a link with a word to your image source.

All you have to do is to create your phrase, or the word with a link and switch to the text editor to copy the HTML code from there, and paste it to your image caption box. If you just need to know how to do that by HTML, it’s more than easy:

<a href="" target="_blank">Google</a>

Where Google is the Word to being displayed at the bottom of the image, and when clicking on it the link will be opened in a new window taking to the Google homepage. So, change the URL and the word, or phrase with your own.

How to Add a Link to Image in WordPress

Adding a hyperlink to images

As you can see, in the above example, you can add a link to any source that you use for your images, like blogs, images stocks, or even Flickr. But, now let’s add a link to an image that takes to a web page when a visitor clicks on the image itself.

It seems a question to never answer because we forget sometimes that there are people who really don’t know how to start with WordPress and doing things that we see as more than easy.

To add a link to any image in WordPress, you need to treat your image exactly as a text. So, click the image to highlight it, then click the link icon at the top of your WordPress post dashboard, and finally add the link that you want, and save.

Related:  Best WordPress Plugins for Genesis Themes

Another good piece of advice about your images, you should optimize images, visitors won’t wait minutes to open your blog pages. So, compress every image before uploading it using Photoshop or any other tool.

add hyperlink to image in WordPress

Now, you’ve just added a link to your image in WordPress, if you’re a new blogger or simply don’t know how to do things that look simple to others, then, you shouldn’t be hesitating and ask even stupid questions, this will save you time and problems. Everyone starts with problems and never asks how to solve them, which can easily affect your blogging project and makes it hard to continue.

Remember also, that you should add the ”NoFollow” attribute to your advertising links. Keep your blog following the Google guidelines and avoid problems with your ranking. If you’re not sure about the quality of websites that you’re linked to them, then adding the NoFollow will be the solution.

Avatar for Fathi Arfaoui
About Fathi Arfaoui

Fathi Arfaoui is a Physicist, Blogger and the founder of He shares Business, WordPress and Blogging tips to build a better blog and succeed online.

Disclosure: The recommendations on this page are my own based on my tests and analysis. We may earn a small commission from web hosts and other partners if you use my referral link to make a purchase. That’s what helps us to maintain the site and add fresh content, Thanks for your support.

Leave a Comment