WordPress.org

Forums

[resolved] Linking an image to a site. (5 posts)

  1. Ricardo
    Member
    Posted 3 years ago #

    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?

  2. Andyroid
    Member
    Posted 3 years ago #

    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>

  3. Ricardo
    Member
    Posted 3 years ago #

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

  4. Andyroid
    Member
    Posted 3 years ago #

    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.

  5. Ricardo
    Member
    Posted 3 years ago #

    It works like a charm! :-) Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.