The image is there but in lijne 29 of page.tpl.php it says this: Only local images are allowed. print $directory img/hdr.jpg" alt=" print t('Home')

The problem is that when I'm on pages away from the root, say mysite.com/cart the path output is mysite.com/cart/img/hdr.jpg

There's probably a better way to fix this but I;ve fixed it by changing $directory to $base_path and just putting the full folder paths to the image:
Only local images are allowed. print $base_path themes/elegant/img/hdr.jpg" alt=" print t('Home')

Comments

butler360’s picture

Geeze, OK, I messed up. Never posted code here before, sorry.

It says this: <img src="<?php print $directory ?>img/hdr.jpg" alt="<?php print t('Home') ?>

That works OK on root pages but when I go to say, my Ubercart checkout it ends up outputting cart/img.hdr.jpg.

My fix is this:
<img src="<?php print $base_path ?>themes/elegant/img/hdr.jpg" alt="<?php print t('Home') ?>

I don't know if that's the best fix but it works for me.

finex’s picture

Is the theme installed on the default theme directory on the "sites/..." subdirectory?

butler360’s picture

Default theme directory.