images disappear on published page (5 posts)

  1. seokite
    Posted 7 years ago #


    In a page I have placed some images. When I click view in draft mode I can see them but when I publish and then click view I can't see them.
    Anyone know what's causing this?

  2. Pinoy.ca
    Posted 7 years ago #

    Can you please post the URL?

  3. seokite
    Posted 7 years ago #

    Hi the URL is: http://www.weehousescotland.co.uk/

    After some more testing it is now apparent that images will only show on the home page. Images will display on the other pages but only in draft mode.
    On this page: http://www.weehousescotland.co.uk/facilities/ there should be 7 images and if you look at the source code you'll see the markup for them. Now if I copy an <img> tag from this page to the home page it will display.
    I have tested with different themes, same problem. Can anyone fathom this out. I'm really puzzled by it.

  4. Jeremy Clark
    Posted 7 years ago #

    If you look at the source of the facilities page you'll see that the img tags look like this.

    <img width="440" height="294" src="wp-content/uploads/cottage5.jpeg"/>

    This is called a releative path and tells the browser to look in http://www.weehousescotland.co.uk/facilities/wp-content/uploads/ which doesn't exist. You'll need to specify the full path when link to images.

    <img width="440" height="294" src="http://www.weehousescotland.co.uk/wp-content/uploads/cottage5.jpeg"/>

    Will work no matter where the page is access from.

  5. seokite
    Posted 7 years ago #

    jeremyclark13, thank you! That was it.

Topic Closed

This topic has been closed to new replies.

About this Topic