WordPress.org

Ready to get started?Download WordPress

Forums

My images are not showing on the website (3 posts)

  1. Crispian
    Member
    Posted 1 year ago #

    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>

  2. Media X
    Member
    Posted 1 year ago #

    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.

  3. Crispian
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic