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

Header Spacing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-16-2009, 02:52 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Header Spacing

Hi again, all.

I'm trying to sort the header on my website, but I'm a bit stuck!

I've changed the main.css to have the sizing etc for the new banner (966 x 150). I've also changed the margins below in the page containers to allow for the extra height in the banner.


However,

I cannot seem to change the image itself. Currently, I've cheated and just named the replacement "xlogo.gif" - Simply to use the code from the original.


In skin1/head.tpl - When I replace:

Code:
<table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" /></a></td>


With:

Code:
<table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/main_header.jpg" width="966" height="150" alt="" /></a></td>


It does not change, at all?


I've found that there's a second head.tpl in customer/ - is this anything to do with it? Do I have to change both?

Or - I cannot find a HeadLogo class in the css, so do I have to add one? But why should the original header work, just not the new image...!



My second problem is that I cannot see the top drop-shadow that I've inserted into the rectangle_top.tpl.

The image is 966 x 25 and only seems to appear in the admin area, even though I inserted it into skin1/rectangle_top.tpl :

Code:
<div id="Container" align= "center" width= "966"><img alt="" src="/skin1/images/rectangle_top.jpg"/></div>



Any help on these two issues will be so much appreciated!

Thanks in advance,
JeanB
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #2  
Old 11-16-2009, 03:30 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Header Spacing

Unfortunately the logo dimension is defined in the main.css, search for following lines and change the width and the height values:
Code:
#header .line1 { position: relative; height: 67px;/* top row */ direction: ltr; } #header .line1 .logo { padding-top: 9px; margin-left: 27px; width: 203px; /* logo container div */ } #header .line1 .logo a img { width: 203px; /* logo width */ height: 48px; /* logo height */ }
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #3  
Old 11-16-2009, 03:34 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Header Spacing

Hi Zaja,
Thanks for your quick reply.

I have changed those sizes to the sizes for the new banner, it displays fine when the image is named "xlogo.gif", using the existing coding in head.tpl.

When I come to change "xlogo.gif" to "main_header.jpg", it does not make any changes. Even though they're both in the same directory.

NB - If I deleted xlogo, it still held on to the image! I refreshed the browser many times and also cleared the cache/temps.


Thanks for your help so far,
JeanB
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #4  
Old 11-16-2009, 03:47 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Header Spacing

Did you changed the image name in /skin1/customer/head.tpl ?
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #5  
Old 11-16-2009, 03:48 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Header Spacing

In 4.2.x all client side templates are in skin1/customer so the file you need to edit is skin1/customer/head.tpl not skin1/head.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 11-16-2009, 03:53 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Header Spacing

D'oh! Ok - Thank you!

I've edited the customer/head.tpl now and it's working fine! Thank you! Do I have to revert the skin1/head.tpl back to its 'out of the box' status?

Thanks both - that's been brill!


Hate to push it, but - Any ideas as to why my rectangle_top isn't displaying?
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:05 PM.

   

 
X-Cart forums © 2001-2020