Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

logo not showing in tagline SOLVED


Reply

5 Posts   1152 Views

Avatar
servalman

10 September 2009 at 3:42am (Last edited: 10 September 2009 7:11pm), Community Member, 211 Posts

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 did

I edited the the page.ss file in template:

<div id="Header">
         $SearchForm
          <h1>De L'air</h1>
       <p>your site&#39;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

Avatar
Hamish

10 September 2009 at 9:26am (Last edited: 10 September 2009 9:26am), Community Member, 712 Posts

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

Avatar
servalman

10 September 2009 at 10:12am Community Member, 211 Posts

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

Avatar
Willr

10 September 2009 at 5:35pm Forum Moderator, 5511 Posts

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/

Avatar
servalman

10 September 2009 at 7:10pm Community Member, 211 Posts

Thanks for your explanation it is much clearer now

Love this cms

T