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)
-   -   moving tabs to search bar (https://forum.x-cart.com/showthread.php?t=19395)

stevep 01-21-2006 02:15 AM

moving tabs to search bar
 
How can i move the home page tabs at the top of the home page to the search bar just below!!

balinor 01-21-2006 04:21 AM

The tabs are an include in head tpl. They are actually in a template called customer/top_menu.tpl. Move the chunk of code out of customer/top_menu.tpl into the speed bar of head.tpl

stevep 03-10-2006 06:38 AM

Bing a little thick could you show me how to with some mre text please

Sheffield_Tiger 03-10-2006 08:09 AM

Here's a sample of an edited head.tpl to give you an idea

look around the {include file="customer/top_menu.tpl"}

Note: I have actually moved the search box in this example so that it sits above what used to be the search bar and now in the bottom right of the header background (underneath where the tabs used to sit at the top right)

Code:

{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr height="80">
                <TD valign="bottom" align="right" height="80" background="skin1/images/header.jpg">{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</TD>
        </tr>
        </TR>
</TABLE>
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD  colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
                <TD class="HeadLine" align="left" height="22">{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}{/if}</TD>
        </TR>
<TR>
<TD  colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
{******** Remove this line to display how much products there are online ****
<TR>
<TD colspan="2" class="NumberOfArticles" align="right">{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</TD>
</TR>
**** Remove this line to display how much products there are online ********}
<TR>
{******** commented out to remove white space between search bar and side menus - moved printable topics into product.tpl instead ****
        <TD colspan="2" valign="middle" height="32">
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18">
<TR>
        <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
{if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'}
<TD width="100%" valign="middle" align="right">{include file="printable.tpl"}</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
{/if}
</TR>
</TABLE>
        </TD>
**** Remove this line to leave printable topics within head.tpl********}
</TR>
</TABLE>


NOTE:
If you use from this example, you may want to remove the lines
{******** commented out to remove white space between search bar and side menus - moved printable topics into product.tpl instead ****
and

**** Remove this line to leave printable topics within head.tpl********}
as otherwise your "printable version" link will disappear and everything will be pushd right up to the search bar and look untidy, unless you call the spacing or printable version in a table at the top of other templates


(note: I've only included this example rather than a step-by-step as I'm new to this and doing things by trial and error)

stevep 04-09-2006 02:19 AM

cheers job done thanks


All times are GMT -8. The time now is 07:25 PM.

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