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

Placing a banner on "head.tpl"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-18-2006, 07:40 AM
 
mlivio@vo.lu mlivio@vo.lu is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 89
 

Default Placing a banner on "head.tpl"

Hi guys,

here is my site:

http://www.febbredoro.com

I would like to replace my banner/Background image (the bue background behind the logo) with a real banner.
My problem is when the window is resizing (getting bigger) the image I used as a banner/background is cloned with this bad tile effect.
I also tried to make the image bigger so that when the window resize I do not have the tile effect, this worked but when the window is normal size you hardly see the image I used as background.
So, that's why for now I placed this blue background as banner, is there a way I can use a real image as a banner without having resize problems ?


Thanks for your help,
Livio !!!!!!
__________________
http://www.febbredoro.com

Version 4.0.19
Reply With Quote
  #2  
Old 10-18-2006, 07:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Placing a banner on "head.tpl"

Just make sure the size is called correctly in head.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-18-2006, 08:27 AM
 
mlivio@vo.lu mlivio@vo.lu is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 89
 

Default Re: Placing a banner on "head.tpl"

Hi,

do you mean by specifing the height and widht attribute on the IMG tag ?


Livio !!!!
__________________
http://www.febbredoro.com

Version 4.0.19
Reply With Quote
  #4  
Old 10-18-2006, 08:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Placing a banner on "head.tpl"

If you are calling it as an image, yes. If you are using it as a background, you will need to put a spacer.gif in the header to make sure it stretches to show the whole image.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-18-2006, 09:13 AM
 
mlivio@vo.lu mlivio@vo.lu is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 89
 

Default Re: Placing a banner on "head.tpl"

Hi,


thanks again for your help.
I am using it as a background (background="/skin1/images/banner-01.gif), could you please give me a spacer.gif example, which size should be used for the correct resizing ?


Livio !!!!!
__________________
http://www.febbredoro.com

Version 4.0.19
Reply With Quote
  #6  
Old 10-18-2006, 09:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Placing a banner on "head.tpl"

Ok, first, you need to use CSS to define the background. Here's an example of a very simple header:

<table width="100%" cellpadding="0" cellspacing="0" class="header">
<tr><td><img src="{$ImagesDir}/spacer.gif" width="50" height="100" alt=""/></td></tr></table>

Then, in your skin1.css file, you place this:

.header {background: url(images/banner-01.gif); background-repeat: no-repeat;}

Replace the sizes in the spacer.gif to correspond to the height of your banner.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-18-2006, 09:29 AM
 
mlivio@vo.lu mlivio@vo.lu is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 89
 

Default Re: Placing a banner on "head.tpl"

Great Balinor, this will help !!!!!!

Thanks,
Livio !!!!
__________________
http://www.febbredoro.com

Version 4.0.19
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 11:35 AM.

   

 
X-Cart forums © 2001-2020