Image location issue?

Permalink 1 user found helpful
Hi,

I posted the other day (http://www.concrete5.org/community/forums/usage/constant-logging-out-and-andquotaccess-deniedandquot-message/ ) about my theme not working and being logged out every time I clicked edit site with my custom theme. I've since found out that the problem was related to an image that I had embedded in the theme file.

I had just been putting images in as standard HTML - but since I found out the problem I've been trying to use the php snippet needed in theme.

Trouble is it's not working :/

This is the code I'm using:
<img src=”<?php $this->getThemePath()?>/images/logo.png”  alt=”logo”/>


Any ideas why it's coming up as: " �logo " ??

In the source code it's coming up as :

<img src=/images/logo.png�  alt=�logo�/>


Any ideas would be greatly appreciated!

 
pinkfish replied on at Permalink Reply
Problem solved! Some more digging and I found this site:http://www.codeblog.ch/2009/01/concrete5-theme-erstellen/3/...

which says the code needs to be
<img src="<?php echo $this->getThemePath()?>/images/logo.png" alt="Logo"/>