WordPress.org

Ready to get started?Download WordPress

Forums

How to add images to the sidebar... (4 posts)

  1. ilovehorror
    Member
    Posted 5 years ago #

    ...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

  2. stvwlf
    Member
    Posted 5 years ago #

    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 />

  3. kjagen
    Member
    Posted 5 years ago #

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

  4. stvwlf
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic