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

Header banner

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-26-2008, 11:24 PM
  wank3r's Avatar 
wank3r wank3r is offline
 

eXpert
  
Join Date: Aug 2006
Posts: 291
 

Default Header banner

Hi,

I'm trying to insert a new banner/logo on top of a default 3-coloumn site. But I only get to view a picture that is 244 x 67 pixel (xlogo.gif) and I've made it 960 x 70 pixels.

Does anyone know which file to edit to make the whole image show on top of the page?

I've already looked at this artcle: http://forum.x-cart.com/showthread.php?t=21529.

Thanks!
__________________
Powered by X-Cart Gold: 4.4.4/4.4.5
Reply With Quote
  #2  
Old 10-26-2008, 11:39 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Header banner

skin1/head.tpl
change width and height according to your image.
<img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" />

as you wish this logo to have width similar with the total page width
you need to change the table structure of the first table in this file
HTML 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> <td class="HeadRightBox"> {if $usertype eq "C"} {include file="customer/top_menu.tpl"} {/if} </td> </tr> </table>

to
HTML Code:
<table cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="100%"><a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" /></a></td> </tr> {if $usertype eq "C"} <tr> <td class="HeadRightBox"> {include file="customer/top_menu.tpl"} </td> </tr> {/if} </table>
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 10-26-2008, 11:49 PM
  wank3r's Avatar 
wank3r wank3r is offline
 

eXpert
  
Join Date: Aug 2006
Posts: 291
 

Default Re: Header banner

Thanks for the quick response! I'll look into it right away.
__________________
Powered by X-Cart Gold: 4.4.4/4.4.5
Reply With Quote
  #4  
Old 12-11-2008, 06:46 AM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Re: Header banner

Hello Victor,

How do you move Speed Bar to be under search row, underneath header space. I had seen discussion regarding home .tpl, however, I do not see home .tpl at this time.

<td class="HeadRightBox">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</td>

Also, how to you move the Speed bar buttons right and left (overall size 1 or more buttons) to fit overall layout.

Thank you,
__________________
All USA Catalog
X-Cart Gold 4.1.9
Reply With Quote
  #5  
Old 12-11-2008, 07:00 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Header banner

Not home.tpl, but head.tpl

For instance replace
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}

with &nbsp;

and insert one more table at the end head.tpl:

{if $usertype eq "C"}
<table width="100%"><tr><td>{include file="customer/top_menu.tpl"}
</td></tr></table>
{/if}

what concerns the second part of your question I can't catch the point.
If you want to have equal spaces between speedbar links you need to divide page width (or 100% if it isn't fixed) by total numer of links to get the one item width.
You may need
http://smarty.net/manual/en/language.function.math.php for reference
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #6  
Old 12-12-2008, 04:12 AM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Re: Header banner

How do you make top of speed bar flush with bottom of search row.

Thanks,
__________________
All USA Catalog
X-Cart Gold 4.1.9
Reply With Quote
  #7  
Old 12-23-2008, 04:11 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Header banner

just place search and speedbar and in subsequent rows of the same table
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #8  
Old 12-24-2008, 08:08 AM
 
auc auc is offline
 

Member
  
Join Date: Jul 2007
Posts: 10
 

Default Re: Header banner

Request step by step how to Instructions with code. Thanks!
__________________
All USA Catalog
X-Cart Gold 4.1.9
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 10:26 AM.

   

 
X-Cart forums © 2001-2020