• I am trying to add an image to a widget(it’s just custom HTML) and the image I am trying to add keeps not showing up(always shows the alt text).
    My code is simple:
    <img href="/wp-content/images/map.png" alt="Error" />
    It always shows “Error”.
    Changing it to the absolute path doesn’t help either.

    I’ve also changed the location of the image twice, and nothing helped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi incedo,

    You’ll need to change:

    <img href="/wp-content/images/map.png" alt="Error" />

    to:

    <img src="/wp-content/images/map.png" alt="Error" />

    href is used for links where as src is used for images.

    Hope that helps!

    Changing it to the absolute path doesn’t help either

    is the image where you tihnk it is?

    if you use the same url in the widget which you would use to call the image in the browser (http://site.com/path/image.jpg) then it should show.

    please post a link to your site to illustrate your problem.

    imho, saving an image in this location is rather unusual:
    /wp-content/images/map.png

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A bit of HTML and picture trouble.’ is closed to new replies.