html in php — easy question about embedding code
-
i’m trying to insert an image from somewhere in the header template. i tried this first
echo '<img src="' . bloginfo('template_directory') . '/../thematicChild/images/greenblue_line.gif" />';but it rendered like this:
http://www.blah.com/wp-content/themes/thematic<img src="/../thematicChild/images/greenblue_line.gif" />do you see? it comes out in a different order than i wrote it.
anyone know why this is???? i fixed easily it like thisecho '<img src="'; echo bloginfo('template_directory'); echo '/../thematicChild/images/greenblue_line.gif" />';but that just seems a little ghetto and inefficient.
suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘html in php — easy question about embedding code’ is closed to new replies.