Making an image a link - classic Google Sites
Many classic Google Sites users want to know how to make an image a link in classic Google Sites. Learn how to remove and edit the link on an image with these instructions.
For new Google Sites see these instructions: Making an image a link - new Google Sites
Instructions
Remove Default Automatic Link to Image
When you add an image to the page Google Sites automatically makes the image a link to the image itself, so select (or click) the image
You will see the Image Option dialogue box appear (it contains both the link information, alignment, size and wrap options): use the upper Remove link - this removes the automatically added link to the image itself.
Make an Image a Link
Use the Insert menu and Image to add your image to the page
Select (or click) the image and you will see the Image Option dialogue box appear: use the Change link
Either choose the page you wish to link to or go to the Web address tab and add the URL you want to link to
Use the OK button and your image will now link to the page or web address you chose.
Remove a Link from an Image
Select (or click) the image and you will see the Image Option dialogue box appear (it contains both the link information, alignment, size and wrap options)
Use the upper Remove link and the image will no longer link to anything.
If you want to make an image already on the page a link the easiest way to do this is to remove the image and re-insert it, so you can follow the steps above in Make an Image a Link.
Code Instructions
Only use these instructions if you want to hand code the link in HTML
Use the Insert menu and Image to add your image to the page
Once added to the page Google Sites automatically makes the image a link to the image itself, so you need to alter this link to point to the website you want: to do this you need to use the HTML button to edit the HTML around the image.
Once in the HTML find the
<a href="..."> </a>
around the image and change the contents of the
href="..."
to the web address you want.
If you want to add an alternative text tag to your image, so if the image does not load or someone with visual impairments using a screen reader can sill get the information the images conveys add
alt="Alternative Text"
to inside the
<img >
tag.
Note: do not try to describe the image, but what it's there for, e.g. if it's a link to Google Sites then make the alternative text "Google Sites".
If you want to give more information of where the image link will take you then add a title attribute to the link: to do this add
title="descriptive text"
to the
<a href="...">
If you want the link to open in a new window then add a target attribute to the link: to do this add
target="_blank"
to the
<a href="...">
See the examples on the right to see specifically how it's done done.
Option Boxes
Image Option Box
Code Examples
Inserted Image
HTML code for it is:
<a href="http://www.google.com/a/help/intl/en/images/sites_35.gif" imageanchor="1"><img src="http://www.google.com/a/help/intl/en/images/sites_35.gif" border="0"></a>
Change the
<a href="http://www.google.com/a/help/intl/en/images/sites_35.gif" imageanchor="1">
to
<a href="http://sites.google.com">
Linked Image with Title
To add the title to the link and alternative text to the image you should produce something like:
<a href="http://sites.google.com" title="Google Sites - free websites and wikis"><img src="http://www.google.com/a/help/intl/en/images/sites_35.gif" border="0" alt="Google Sites"></a>
Just the image, no link
To remove the link from the image you should remove the highlighted code:
<a href="http://www.google.com/a/help/intl/en/images/sites_35.gif" imageanchor="1"><img src="http://www.google.com/a/help/intl/en/images/sites_35.gif" border="0"></a>
So you're left with:
<img src="http://www.google.com/a/help/intl/en/images/sites_35.gif" border="0">
Learn about Steegle Products
Feedback
Please let us know if this article helped or if you know of any improvements.
Keep up-to-date
Join the Sites Update Group on the Google Sites Classic Comparison to get email notifications about New Google Sites updates.
Newsletter
Subscribe to our newsletter for emails about all things Steegle