css Image link

Permalink
Good day
I have made a change in the .css to point to images in the theme img folder?
My code
<img src="img\C_N_Electronic.gif" width="344" height="78" />

But not working? what is the corect url?
Please help newbie?
Thank you

 
Steff replied on at Permalink Reply
Steff
Hi vincent,

Just to be sure. You made a change to the original theme? Or did you make a new one?

For example for a page background you need this in your css file:

#page { background: url(../images/file.png); }

But this is for a new theme in the themes folder.
vincent replied on at Permalink Reply
Hi
It is not for backround I want to and image instead of the site titel? the imges is in the themes folder under img?

I did try the following but not working?

<!-- header START -->
<div id="header">
<div id="caption">
<img src="../img/C_N_Electronic.gif" width="344" height="78" />
&nbsp;
<div id="tagline"><?php
$ah = new Area('Site_Description');
$ah->display($c);
?></div>

Thanks
Steff replied on at Permalink Reply
Steff
Ok. I hope I understood you correctly.

I think you need this line of code:

<img src="<? echo $this->getThemePath(); ?>/images/image.png" /alt="alt text"/>
vincent replied on at Permalink Reply
Thanks
Will have a look at it.

Thanks
katz515 replied on at Permalink Reply
katz515
This is the official help doc to create a custom theme.

http://www.concrete5.org/help/building_with_concrete5/developers/th...

And specially this one

http://www.concrete5.org/index.php?cID=2878...
vincent replied on at Permalink Reply
Good day
I did the following still not working ??
<img src="<? echo $this->getThemePath(); ?>/img/C_N_Electronic.gif" width="344" height="78"/alt="alt text"/>

What am I doing wrong - i edite the code in the header.php ?

Thanks
FatTony1952 replied on at Permalink Reply
FatTony1952
I have a question about div background images defined within the CSS doc. The getThemepath doesn't really apply to an external CSS doc.

Anyone have a solution to this?