By greygoo on
Hi. I have some images in the header inside page.tpl.php that shows up fine only if the url (clean url enabled) is on the top level of the path. For example, mysite.com/admin and mysite.com/user displays them fine, but mysite.com/admin/whatever or mysite.com/user/1, mysite.com/node/1...etc. do not show these images (even though the html code is still there when looking at the source).
The link to the images in the page.tpl.php are currently like this:
<img src="sites/all/themes/basic/images/image1.jpg" />
Any ideas?
I'm using the latest Basic theme 6.x-2.10 with Drupal 6.16.
Comments
Anyone? Bueller? I'm
Anyone? Bueller?
I'm beginning to think that perhaps the issue I'm having is that the images being called from page.tpl.php reside in my theme's folder instead of the site root or my default files folder (sites/default/files)?
Figured it out
I had to start the relative path with a slash like this:
<img src="/sites/all/themes/basic/images/image1.jpg" />Thanks!
This solved my problem. Such a simple solution, but one I hadn't figured out. Thanks!