WordPress.org

Support

Support » Themes and Templates » How to add images to the sidebar…

How to add images to the sidebar…

  • …that aren’t basic HTML widgets? For example, instead of having “Blogs of the LottD,” I want it to be an image I created. I just sat here for an hour going line by line, but nothing worked. The file is in my images folder. Any help would be greatly appreciated. Many thanks!

    http://www.ilovehorror.net

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    You can write HTML in the text widget you know and include the image

    <img src="href://mydomain.com/site/wp-content/uploads/myimage.jpg" width="200" height="300" alt="My image />

    How do you center this?
    And what is a text widget?

    I brought up widgets only because you said

    How to add images to the sidebar… …that aren’t basic HTML widgets?

    If you want to write a few lines of code, put this in your sidebar.php where you want the image to appear

    <img src="href://mydomain.com/site/wp-content/uploads/myimage.jpg" width="200" height="300" alt="My image />

    Obviously you have to change the code to your image’s details.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add images to the sidebar…’ is closed to new replies.