Active
Project:
Elegant
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2008 at 08:35 UTC
Updated:
4 Nov 2008 at 13:42 UTC
The image is there but in lijne 29 of page.tpl.php it says this:
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:
print $base_path themes/elegant/img/hdr.jpg" alt=" print t('Home')
Comments
Comment #1
butler360 commentedGeeze, 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.
Comment #2
finex commentedIs the theme installed on the default theme directory on the "sites/..." subdirectory?
Comment #3
butler360 commentedDefault theme directory.