WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] image tag path to image on local host (4 posts)

  1. jrcollins
    Member
    Posted 1 year ago #

    I have an image tag in a text widget but the image fails to load ("failed to load the given url" in firebug). The actual path to the image I'm using is correct as I got it to show when I copied and pasted it into the url for a background image. The tag is formatted as follows:
    `<img src="images/my-image.png" alt="" height="275" width="200" />

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Use a more accurate URL;

    /wp-content/themes/yourTheme/images/my-image.png
  3. jrcollins
    Member
    Posted 1 year ago #

    Ok, thanks. Was just wondering why it didn't work when I had no problems using it with a background image.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    It's difficult to diagnose without seeing the issue.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.