WordPress.org

Support

Support » How-To and Troubleshooting » My images are not showing on the website

My images are not showing on the website

  • Hi all

    Need urgent help with images issue for client website.

    The images are not showing up after I code them into the pages

    my code here:

    <div id="photo">
    <img src="<?php echo '../images/roxanne_portrait.jpg" width="300" height="404"';?>" />
    </div>
    
    And another sample I tried to use:

    <div id=”photo”>
    <img src=”<?php echo ‘wp-content/themes/roxybbeauty/images/roxanne_portrait.jpg” width=”300″ height=”404″‘;?>” />
    </div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try:
    <div id="photo"> <img src="http://yoursite/wp-content/themes/roxybbeauty/images/roxanne_portrait.jpg" width="300" height="404" /> </div>
    In other words,try using an absolute path.

    Thanks, I think that will work perfectly. I will see what happens when I upload the website. At the moment I am building it on my local server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My images are not showing on the website’ is closed to new replies.
Skip to toolbar