How to inset a logo

Hilly

Avatar: Hilly

2013-09-15 01:24

I have tried inserting a logo image through the admin panel using
<img scr="/files/my_file.jpg">
and the code correctly appears in the $config['logo'] but the image does not appear on the site.

If I put the size in then an empty box appears.

I have uploaded the file manually to the files_dir

I tried to amend the $config['logo'] to '<img src="'.$config['dir_templates'].'files/my_file.jpg" alt="'.$config['title'].'" />'

but I then get a syntax error saying that the next line below the $config line is wrong.
If I delete the next line I get yet another sytex error for the following line, and so on.

Can anyone please help?

Thanks

» Quick.Cart v6.x

Hilly

Guido

Avatar: Guido

2013-09-15 11:57

I guess you are using code from old version (taken from the faq)?

This always works:


<img src="templates/default/img/my_file.jpg" alt="My File" title="My File" 

Hilly

Avatar: Hilly

2013-09-15 18:41

Thanks Guido, but that didn't work :(

There's some wrong that it can't read the path, bit I can't work out what.
I've even tried putting the .jpg in the root - http://mywebsite.com/my_file.jpg - and it still doesn't show.
A space for the logo does appear and if I use alt='My File' the wording appears. But no logo.

Truely scratching my head here.

Hilly

Hilly

Avatar: Hilly

2013-09-15 18:52

Now go it to work by using this solution

This one always works (add it to your _header.php):
<img src="templates/default/img/my_file.jpg" alt="my file" title="my file" >

and deleting the entry on the admin panel.

but now the length of the slogan is limited to the width of the logo.

Hilly

Guido

Avatar: Guido

2013-09-16 13:52

Don't remove this: <div id="title">

So add this to your header:


<div id="title"><img src="templates/default/img/my_file.jpg" alt="my file" title="my file" >

Guido

Avatar: Guido

2013-09-16 13:55

Oh, and add this after: </div>


<div id="title"><img src="templates/default/img/my_file.jpg" alt="my file" title="my file" ></div>



(in this example upload your logo-image to folder templates/default/img)

Hilly

Avatar: Hilly

2013-09-26 15:25

Thanks, sorted!

Hilly

Back to top
about us | contact