Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do I insert an inmage in the head?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-24-2007, 03:49 AM
 
Swish Swish is offline
 

X-Adept
  
Join Date: Nov 2006
Posts: 450
 

Default How do I insert an image in the head?

Hi,
On the default blue/lucid template how would one insert an image in the top part where your logo goes?

I'm assuming it would be a background image as your logo and the nav tabs are on top of it?

And what about size/stretch?

Any tips appriciated. Thanks
__________________
2007-2010 LC: 2.2.41
Jumped ship due to lack of development.
Reply With Quote
  #2  
Old 11-24-2007, 06:11 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How do I insert an inmage in the head?

Strings,

Time to learn about webmaster mode!

Webmaster mode will show you the entire template structure for any page... so you can determine that the logo lives in the file, /skin1/head.tpl

Then you can see that the logo lives in a <td> with a class="HeadLogo" --- but both td's live in a tr that does not have its own class...

SO -- if you want a background image for header, one way would be to place it using the css...

In your css, add this:

.StringsHead { BACKGROUND-IMAGE: url(images/header_background_image.gif); }

Then, put this class into the <tr> in head.tpl

FIND:
Code:
<tr> <td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" /></a></td>
REPLACE WITH:
Code:
<tr class="StringsHead"> <td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" /></a></td>

And of course, upload your background image to /skin1/images

This is basic css -- sorry if it's too basic...

The thing to know is that xcart will tell you what template you need to edit if you use webmaster mode. Then it's basic css the rest of the way.

You can also strip the tables if you feel like it... but that's another thread.

Good luck.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 11-24-2007, 06:21 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How do I insert an inmage in the head?

PS -- you may find this tutorial helpful:

http://www.w3schools.com/css/css_background.asp
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:16 AM.

   

 
X-Cart forums © 2001-2020