[Resolved] Stuck using absolute urls
In my sidebar I use a few small images for the meta links. Why does it seem I am stuck having to use absolute link addresses for the image itself?
For example – this works:
<img src="<?php bloginfo('template_directory'); ?>/images/xfn-btn.gif" alt="XFN Friendly" height="15" width="80" />
but this relative address does not work:
<img src="/images/xfn-btn.gif" alt="XFN Friendly" height="15" width="80" />
Like most themes out there all my theme files are located in the root folder for the theme and all my images are in the “images” folder within it.
I know how relative links work and all about using ../etc etc or ./etc etc when necessary but again, nothing I try works unless I use an absolute/full address.
Just curious, thanks.
PS: I am using the date and name permalink structure if that makes any difference.
- The topic ‘[Resolved] Stuck using absolute urls’ is closed to new replies.