View Single Post
  #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