For example, I am using:
Code:
background: #ffffff url(/rogo/httpdocs/wp-content/themes/atahualpa/images/rogo/bg01.jpg);
However if I replace it with:
Code:
background: #ffffff url(<?php echo get_bloginfo('template_directory'); ?>/images/rogo/bg01.jpg);
I have copied the php function into the footer content to test it, and when used there it comes up with the right directory - http:// localhost/rogo/httpdocs/wp-content/themes/atahualpa (the extra space is just to stop this post coding the link automatically as a URL). But for some reason the function doesn't seem to be working correctly when I put it in a link.
What am I doing wrong? All suggestions welcome!