How do I link to an image in a theme?
example:
<img src="path-to-theme/images/image.jpg">
I don't want to put the static or exact path - am looking for the php command to do this? I can't seem to find any reference to this in the codex yet...
How do I link to an image in a theme?
example:
<img src="path-to-theme/images/image.jpg">
I don't want to put the static or exact path - am looking for the php command to do this? I can't seem to find any reference to this in the codex yet...
Have you try :
<img src="<?php bloginfo('template_url'); ?>/images/image.jpg">
See that
I am french. Sorry for my bad english.
This topic has been closed to new replies.