3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 954 Views |
-
logo not showing in tagline SOLVED

10 September 2009 at 3:42am Last edited: 10 September 2009 7:11pm
Hello
I'm using black_candy theme with ss 2.3.3 :
I'm trying to customise the header and to put my logo in it it is a png image this is waht I didI edited the the page.ss file in template:
<div id="Header">
$SearchForm
<h1>De L'air</h1>
<p>your site's le gazine qui donne a voir e</p>
</div>to
<div id="Header">
$SearchForm
<img src="../images/logo_def.png" alt="de l'air le magazine qui donne à voir " />
</div>It is only showing me the alt phrase but not the images
Maybe the url is wrong or I missed something
thanks for help
Thomas
-
Re: logo not showing in tagline SOLVED

10 September 2009 at 9:26am Last edited: 10 September 2009 9:26am
The URL is wrong.
<img src="../images/logo_def.png" alt="de l'air le magazine qui donne à voir " />
Since the path is relative to your website root, this will be invalid.
Ie, the browser is looking for the image at: yourdomain.com/../images/logo_def.png
-
Re: logo not showing in tagline SOLVED

10 September 2009 at 10:12am
Hi thanks for reply
do you suggest that I should chage it to :
<img src="www.mydomain.com/images/logo_def.png" alt="de l'air le magazine qui donne à voir " />
what I don't get is why it is working with the css files are all the graphics for the menu (for exemple) are selected with that type of paths
url (../images/logo_def.png" alt="de l'air le magazine qui donne à voir) ;
Can you help me understand the différence ?
(I will try you suggestion tomorow and let you know
Thanks
T
-
Re: logo not showing in tagline SOLVED

10 September 2009 at 5:35pm
Can you help me understand the différence ?
Image paths from CSS / JS are taken relative to the file in which they are contained. Eg in a css file the base url is usually themes/themename/css/file.css so to get to images you have to go up a dir and into images - ../images/. Because the templates are compiled (and they have a base url set) image + js paths within a ss file are taken from the base url. Eg yoursite.com. So therefore to get to images you have to go right up - themes/themename/images/
-
Re: logo not showing in tagline SOLVED

10 September 2009 at 7:10pm
Thanks for your explanation it is much clearer now
Love this cms
T
| 954 Views | ||
|
Page:
1
|
Go to Top |



