It is good for every bloggers to know how to add link to image, because there would be some cases whereby you will like to show a demo of your content to your readers, which you may need to provide a demo image button instead of using a text, or you may need to link to another site with a image. So for you to add link to your image, simply follow the few steps below.
I will be using the image above to sight an example, and by default if you click on the image above, you can only view the image.
How To Add Url To Image
Whenever you want to insert a link to image, always switch to Edit HTML mode in your post editor, after you have upload your image, as shown in the image below
When you are in compose mode, you will see the image, but immediately you switch to Edit HTML mode, you will only see the image html code.
This is the html code for the first image above
In your image html code, there will be two link in the image code, and the different between the two url is href=" and src=", but we are only concern with the one starting with href=" format as shown in the image above.
This is the code we are concerned about
Now let me use this blog url to give an example, if i want to insert this blog url to the image above the result we look as follow.
If you click on the image below, you will be redirected to this blog homepage.
How To Open Your Link In New Tab
If you want your link to open in a new tab, probably you are linking to another site and you don't want your readers to leave your site, this is what you need to do, just add target="_blank" after your link address.
The final result should look as follow
If you click on the image below, this blog homepage will open in a new tab
That's all on how to add link/url to image. you may also be interested in how to tag image for better search ranking.
Hope you find this article useful? Use the comment box if have anything to say or ask, and don't forget to subscribe to this blog, for you to get our latest articles directly into your email, and check your email to confirm your request. BLESS
Subscribe For Free Updates!
*Please confirm the email sent to your inbox after clicking "Sign Up!".