Quick Way to Create a Clickable Image in WordPress

Istiak Rayhan

Whenever you add a banner image on your post or sidebar, you always want to make it clickable so that visitors can land specific page. To make it clickable, you have to add a link on image.

However, if you are wondering how to do it, you are on the right place. In this post I will show you how to make an image clickable and how make the link open on new tab.

clickable image

 How to Create a Clickable Image in WordPress

1. First of all, create a new post. You won’t need to publish it.

Create a New WordPress Post

2. Now click on ‘Add Media’ to upload to the image that you want to make clickable.

'Add Media' on WordPress

3. Then a box will be popped up. Click on ‘Upload Files’ and select the file from your computer.

'Upload Files' on WordPress

4. Once image has been uploaded, on the right hand side you will notice ‘ATTACHMENT DISPLAY SETTINGS’.

From ‘Link to’ select ‘Custom URL’ and put URL on the next box. Click on ‘Insert into post’ button.

Adding Link on WordPress Image

5. Now go to ‘Text’ Editor. Copy the code and Paste it where you want to add this clickable image.

Copy Image COde

Your code will be something like –

code for clickable image

6. If you want to make the link open in new window, then you have to edit the code. Add target=”_blank” after link URL and new code will be as follows – open in new tab

That’s it. You are done.

Read: How to Add ALT Tag to Images

If you like this post, then please share it on Facebook, Twitter and Google Plus.

Was this article helpful?
written by

Istiak Rayhan

Istiak Rayhan is the founder of RoadToBlogging.com, a blog that aims to make bloggers’ journey easier. Istiak loves to help newbie bloggers to build a better blog. Here’s more about him.

Get our latest posts delivered straight to your Inbox. No spam, ever.