• Hi,

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you please post the URL?

    Thread Starter seokite

    (@seokite)

    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.

    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.

    Thread Starter seokite

    (@seokite)

    jeremyclark13, thank you! That was it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘images disappear on published page’ is closed to new replies.