Forums

[resolved] WAMP won't show HTML images?! (6 posts)

  1. schoolspeak
    Member
    Posted 4 months ago #

    Hello. I am thinking this is a WAMP issue.

    I'm working with WordPress on WAMP on a PC. Everything is working great except that I am unable to successfully show a foreground image. I thought for a while I was making some error in writing the HTML, but that's not it. I tested my HTML code:
    <img src="image.jpg">
    on a non-WAMP, non-Wordpress site, and the image appeared.
    I even tried absolute paths instead of relative, and that didn't work either.

    Background images are showing up fine. But sometimes, you just need a foreground image.

    For example, on page.php, my design is just fine. But then I try to insert <img src="1.gif"/>. Nothing. I'm using Dreamweaver so I know it's cited correctly. (The image is on the same level as my page.)

    I am hoping that when I actually make the site live, the images will show up. I have never actually activated a live WP site, though, so just doing so really quick is not an option as it will take a while and I'd like to get it right first!

    Thanks in advance for any replies.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    You must use absolute urls for images in WordPress.

  3. schoolspeak
    Member
    Posted 4 months ago #

    Thanks, Esmi. You got me on the right track.
    I needed to be using:
    <img src="http://localhost/site/wp-content/themes/themename/images/image.jpg"/>
    I'm back in business!!

  4. benjaminWP
    Member
    Posted 3 months ago #

    Can I just say thanks to both posters here. I have had the same issue too and now with esmi answer I can stop pulling out my hair and whacking me head off the desk!!

    joking - really!

  5. schoolspeak
    Member
    Posted 3 months ago #

    Happy to help, and save some hair in the process! (Yours and mine) :)

  6. benjaminWP
    Member
    Posted 3 months ago #

    Ha ha - thanks again!

Reply

You must log in to post.

About this Topic