Article blogger HTML Pictures Post Editor

How to Link a picture in your post to a website

When creating a website or blog one thing you must understand is the fact that you must in one way or the other handle some coding aspect and in an original manner.
By default, when a picture in your post is clicked, the file that is used to load the picture is opened, in a new window and at its original size.   This can encourage readers to steal photos that don’t belong to them, so I’ve also described how to stop pictures in your blog from being “clickable”.
But sometimes you may want to set a picture up so that clicking it opens up a different post, or even a whole different website.

How to Link a picture in your post to a website



 How to change where a picture is linked to

Step 1

Add the picture into your post in the usual way.
Step 2
Note where in the post your picture is – you may want to put some temporary marker-text just before or after it, so make it easier to find.
Step 3
Look at the HTML behind your post, by choosing HTML view from the drop-down at the top -left of the editor window
Step 4
Find the code for your picture.  It will look something like this:

<a href=”” imageanchor=”1″ style=”margin-left: 1em; margin-right: 1em;”><img border=”0″ src=”” />&nbsp;</a>

Notice the part in bold, ie the href=”CONTENTS”
Replace this with the URL that you would like your readers to go to when they click on the picture.  For example, if you want them to be taken to Google to do a search, the code would look like:

<a href=”” imageanchor=”1″ style=”margin-left: 1em; margin-right: 1em;”><img border=”0″ src=”” />&nbsp;</a>

By default, clicking the picture will take your visitor to the link you give in the same window.   But if you would like it to open in a new window, add target=”_blank” to the code too, like this:

<a href=”THE URL TO GO TOtarget=”_blank” imageanchor=”1″ style=”margin-left: 1em; margin-right: 1em;”><img border=”0″ src=”” />&nbsp;</a>

Go back to Compose mode (so you don’t get confused next time you edit a post)
Remove the marker text, if you used any.

Some more things to think about

Will your readers realize that they should click the picture?

Unless your image says “click me”, some users won’t – and if they’re used to Blogger, they may just expect to see a larger version of your photo.   So it might be a good idea to add a caption, or even some instructions in your blog to tell them to click the picture.
Also while you’re editing the code, you might also like to add some alt-text to your picture link too, to make your blog more friendly for readers who use screen-reading tools, and for search engines / SEO.

What you will see

At some times in the past, when you added a link a picture and then hovered over the picture in the post editor, your would see a double-row of in-post editing options:

  • one row had the usual options for editing pictures (which lets you set the picture size, alignment and caption)
  • one row had the usual options for editing links (with options to go-to, change and remove the link.

Today, as I’m writing this post, I can only see one row of options in hyperlinked pictures – so I need to edit the HTML again if I want to change or remove the link – there is no way to do it from the Compose view.

See also  Make money with your blog


  • Get our online Homework Help if you are finding it hard to complete your assignments with extreme accuracy and within the deadline. We have a team of professionals who can help you write exclusive and authentic content from scratch.

  • Having problems in understanding the topic of the assignment? Want to take the Assignment Helper? For solving all your academic problems you can visit our website and get a reliable solution.

  • When creating a website, there are some aspects of coding that are very difficult for people to handle. Some things in the website, such as content and pictures, should be used in a way that does not cause you copyright issues later on.

Leave a Comment