.php image page

jeanm

Member
I've created a .php page to show an image in the top left corner of each web page. So far this has been fine. However when I now drop down a level to create pages within the various folders the image is no longer there. I've tried everything I can think of but I can't get it to appear on pages at both levels. :confused:

The index page in its temporary position is: http://d7806.mysite.westnethosting.com.au/index.php

A page at a lower level is:
http://d7806.mysite.westnethosting.com.au/how-do-I/how-do-I-template.php

Thanks in advance.
 

Phreaddee

Super Moderator
Staff member
if your image links are relative add a / infront of them. or make them absolute

that might help. it usually does for me.
 

jeanm

Member
I'm not having much luck whatever I do. This is the code I'm using for the photo page I'm inserting:

<div class="jeans-photo"><img class="jeans-photo" src="images-general/jean-morrison-head.jpg" alt="Pressed metal ceilings sold by Jean Morrison" /></div>

and that is the only code that is on that page altogether. It works a treat for all the main pages of the site. I can change it to be:

<div class="jeans-photo"><img class="jeans-photo" src="../images-general/jean-morrison-head.jpg" alt="Pressed metal ceilings sold by Jean Morrison" /></div>

and that produces an image in the internal pages but I lose it for the main pages.



This is what I've put into the code on each page of the site:

<div class="header">
<?php include ("jeans-photo-div.php"); ?>
</div>

I've tried fiddling with that code too by putting ../ and just a / before the page name but nothing seems to be fixing the problem.

Any suggestions anyone please?
 

jeanm

Member
Thank you so much Jason H. It's now working well. Your help is very, very much appreciated. :) Whoopee!
 
Top