X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Header banner (https://forum.x-cart.com/showthread.php?t=43254)

wank3r 10-26-2008 11:24 PM

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!

Victor D 10-26-2008 11:39 PM

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>


wank3r 10-26-2008 11:49 PM

Re: Header banner
 
Thanks for the quick response! I'll look into it right away.

auc 12-11-2008 06:46 AM

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,

Victor D 12-11-2008 07:00 AM

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

auc 12-12-2008 04:12 AM

Re: Header banner
 
How do you make top of speed bar flush with bottom of search row.

Thanks,

Victor D 12-23-2008 04:11 AM

Re: Header banner
 
just place search and speedbar and in subsequent rows of the same table

auc 12-24-2008 08:08 AM

Re: Header banner
 
Request step by step how to Instructions with code. Thanks!


All times are GMT -8. The time now is 10:14 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.