WordPress.org

Ready to get started?Download WordPress

Forums

Images in sidebar? (7 posts)

  1. alteredstate
    Member
    Posted 5 years ago #

    The theme I'm using has two sidebars. I'd like to be able to post a couple of images (JPEGs and GIFs) here but can only find the 'Text' widget. This allows html. Do I have to link to an image on another site, or is there a widget somewhere that allows direct insertion of images?

    I've uploaded a JPEG using the media module but can't see a way of using this image in the sidebar.

    All help appreciated!

  2. Samuel B
    moderator
    Posted 5 years ago #

    you can't use the text widget to insert the html to call an image? why not?

  3. alteredstate
    Member
    Posted 5 years ago #

    Well, I'm new to this so didn't even know if that was possible. Now I know it is I'll try again.

  4. alteredstate
    Member
    Posted 5 years ago #

    It's not working for me. What do I need to do to call an image with HTML?

    The code I'm using is: http://www.entranceyourlife.co.uk/index_files/page0_1.jpg

    That does nothing. If I put <> around it I see the code, not the image. The image is showing on the original webpage.

    I know this is just a question of me know understanding how WP does this, I'm not saying there's anything wrong. A little help getting started is all I'm asking for.

  5. mrlich
    Member
    Posted 5 years ago #

    To add an image in html using the text widget, use the following code:

    <img src="http://www.entranceyourlife.co.uk/index_files/page0_1.jpg" alt="Your Alt Text Here">

    If you wish to have the image link to something - add an html link around the image - like this:

    <a href="http://link.to.your.destination.here.com">
    <img src="http://www.entranceyourlife.co.uk/index_files/page0_1.jpg" alt="Your Alt Text Here">
    </a>

    Hope that helps.

  6. alteredstate
    Member
    Posted 5 years ago #

    That's great thank you mrlich!

  7. Ricky__B
    Member
    Posted 4 years ago #

    I've tried this and my images show up in the Chrome browser but not IE8.

Topic Closed

This topic has been closed to new replies.

About this Topic