WordPress.org

Ready to get started?Download WordPress

Forums

My image won't display (3 posts)

  1. kathycam
    Member
    Posted 5 years ago #

    Hello,

    I have added an image to my page as follows:

    <img src="build/news_01.jpg" />

    and it does not show up. I checked to make sure that the
    image is in the build directory and it is.

    How do I fix this?

    Thanks.

  2. stvwlf
    Member
    Posted 5 years ago #

    Relative paths are not consistent in WordPress, because of the way WordPress creates URL's. If build is a top level directory in your web root, use <img src="/build/news_01.jpg" />

    If its not top level include in the url the folders above build, from the web root down.

  3. whooami
    Member
    Posted 5 years ago #

    isnt this rudimentary????

    http://www.village-idiot.org/broke/why-so-hard.jpg

    Im trying to understand what about troubleshooting this is so difficult when there are countless ways to troubleshoot broken images.

    I used a browser, ffs.

    If build is a top level directory in your web root, use <img src="/build/news_01.jpg" />

    It's worth noting, btw, that that isnt anything special in wordpress. Thats applicable everywhere.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.