WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Linking an image to a site.

[Resolved] Linking an image to a site.

  • In the sidebar on http://www.fastforwardandrewind.com I have an image, and below it a download button. I want people to be linked to the site if they click the image (so that I can remove the button) This is the code I use now:

    <a href="http://fastforwardandrewind.com/?p=877"><img src="<a href="http://fastforwardandrewind.com/wp-content/uploads/2011/06/ArtworkMixtape1.jpg"><img src="http://fastforwardandrewind.com/wp-content/uploads/2011/06/ArtworkMixtape1-300x300.jpg" alt="" title="ArtworkMixtape1" width="230" height="230" class="aligncenter size-medium wp-image-882" /></a></a> <div style="text-align:center;"><strong> <A HREF="http://www22.zippyshare.com/v/40665835/file.html">Download</A></strong></div>

    I have tried this code: <A HREF="http://www22.zippyshare.com/v/40665835/file.html"> <IMG SRC="http://fastforwardandrewind.com/wp-content/uploads/2011/06/ArtworkMixtape1.jpg"> </a> But that doesn’t do anything.

    Can someone help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This should work:

    <a href="http://www22.zippyshare.com/v/40665835/file.html"><img src="http://fastforwardandrewind.com/wp-content/uploads/2011/06/ArtworkMixtape1-300x300.jpg"></a>

    I’ve tried it, but I only get an empty text widget when I use this code.

    That’s because the file

    http://fastforwardandrewind.com/wp-content/uploads/2011/06/ArtworkMixtape1.jpg

    does not exist. Just paste what I wrote (including the correct image url) and it will work.

    It works like a charm! 🙂 Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Linking an image to a site.’ is closed to new replies.