How to link image in sidebar to external website (3 posts)

  1. Wonderful Wanderings
    Posted 2 years ago #

    Hi there,

    I want to
    - upload an image to the media library
    - put that image in my sidebar
    - link it to an external website.

    Now, I've found how to link uploaded images in posts and pages to external websites (here: http://en.support.wordpress.com/links/image-links/), but this method does not work if you want to add an image in the sidebar and link it to an external site.
    Is this even possible?


  2. Wonderful Wanderings
    Posted 2 years ago #

    Okay, I found it by copying the code from another website, but to be honest I don't know what I did here, just that it works:

    <div class="textwidget">!
    <img src="http://mysite.com/wp-content/uploads/my-image"></img></div>

  3. Michael
    Forum Moderator
    Posted 2 years ago #

    you quoted a link from WordPress.com which might not (fully) work on WordPress.org

    also, your code can't be checked as it was posted without being marked properly, and got broken by the forum output.

    please review http://codex.wordpress.org/Forum_Welcome#Posting_Code

Topic Closed

This topic has been closed to new replies.

About this Topic