WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Wonderful Wanderings
    Member
    Posted 8 months 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?

    Thanks

  2. Wonderful Wanderings
    Member
    Posted 8 months 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. alchymyth
    The Sweeper & Moderator
    Posted 8 months 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

Reply

You must log in to post.

About this Topic