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)
-   -   Removing Spaces Under/In Head (https://forum.x-cart.com/showthread.php?t=39401)

tamicampos 04-28-2008 05:46 AM

Removing Spaces Under/In Head
 
I have a space beneath my head line that I would like to eliminate. I have used Webmaster Mode and it shows me that the space is within head.tpl but when I take out rows, nothing changes except that some rows take out the "printable version" on the cart page. Here is my code:

{* $Id: head.tpl,v 1.58.2.1 2007/09/03 06:15:21 max Exp $ *}
{* Top Row*}

<table cellpadding="5" cellspacing="0" width="100%">
<tr>
<td colspan="2" class="HeadLine" height="22">
&nbsp;<a href="home.php">Home</a> &nbsp;&nbsp;&nbsp;
<a href="cart.php">Shopping Cart</a> &nbsp;&nbsp;&nbsp;
<a href="help.php?section=contactus&mode=update">Cont act Us</a>
<td class="HeadLine" align="right">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</td>
</tr>
</table>

{*Thin Line*}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>

{*Logo Banner*}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="HeadLogo" height="100"><a href="home.php"><img src="{$ImagesDir}/kookoomonkeylogo2.jpg" width="244" height="100" alt="" /></a></td>
<td class="HeadRightBox">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</td>
</tr>
</table>

{*Thin Line*}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
{if $main ne "fast_lane_checkout"}
<tr>

{*Horizontal Navigation Bar*}
<td class="HeadLine" height="45" align="center">
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<a href="home.php?cat={$c.categoryid}" </a>
<font color="99cccc">{$c.category}{if not %categories.last%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;{/if}</font>{/foreach}
{else}
{foreach from=$subcategories item=c key=catid}
<font color="99cccc">{$c.category}{if not %categories.last%}&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;{/if}</font>
{/foreach}
{/if}
{if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1}
<form action="home.php" method="get" name="sl_form">
<input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|amp}" />
<table cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px;"><b>{$lng.lbl_select_language}:</b></td>
<td><select name="sl" onchange="javascript: this.form.submit();">
{section name=ai loop=$all_languages}
<option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected="selected"{/if}>{$all_languages[ai].language}</option>
{/section}
</select></td>
</tr>
</table>
</form>
{else}
&nbsp;
{/if}
</td>
</tr>
{else}
{* Fast Lane Checkout page *}
<tr>
<td colspan="2" class="HeadLine">
<form action="{$xcart_web_dir}/include/login.php" method="post" name="toploginform">
<input type="hidden" name="mode" value="logout" />
<input type="hidden" name="redirect" value="{$redirect|escape}" />
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="FLCAuthPreBox">
{if $active_modules.SnS_connector and $sns_collector_path_url ne '' && $config.SnS_connector.sns_display_button eq 'Y'}
<img src="{$ImagesDir}/rarrow.gif" alt="" valign="middle" /><b>{include file="modules/SnS_connector/button.tpl" text_link="Y"}</b>
{else}
<img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" />
{/if}
</td>
{if $login ne ""}
<td align="right" font-color="#ffffff" nowrap="nowrap"><b>{$userinfo.firstname} {$userinfo.lastname}</b> {$lng.txt_logged_in}</td>
<td class="FLCAuthBox">
{if $js_enabled}
{include file="buttons/button.tpl" button_title=$lng.lbl_logoff href="javascript: document.toploginform.submit();" js_to_href="Y"}
{else}
{include file="buttons/logout_menu.tpl"}
{/if}
</td>
{/if}
</tr>
</table>
</form>
</td>
</tr>
{/if}
<tr>
<td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</tr>
{******** Remove this line to display how much products there are online ****
<tr>
{insert name="productsonline" assign="_productsonline"}
<td colspan="2" class="NumberOfArticles" align="right">
{if $config.Appearance.show_in_stock eq "Y"}
{insert name="itemsonline" assign="_itemsonline"}
{$lng.lbl_products_and_items_online|substitute:"X" :$_productsonline:"Y":$_itemsonline}
{else}
{$lng.lbl_products_online|substitute:"X":$_product sonline}
{/if}
&nbsp;
</td>
</tr>
**** Remove this line to display how much products there are online ********}
{if $main ne "fast_lane_checkout"}
<tr>
<td colspan="2" valign="middle" height="32">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="HeadTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></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 class="PrintableRow" align="right">{include file="printable.tpl"}</td>
{/if}
</tr>
</table>
</td>
</tr>
{else}
{* Fast Lane Checkout page *}
<tr>
<td colspan="2" class="FLCTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
</tr>
{/if}
</table>

Can anyone tell me how to take it out? Thanks so much.

Yurij 04-28-2008 06:52 AM

Re: Removing Spaces Under/In Head
 
Try this code:


PHP Code:

{* $Idhead.tpl,v 1.58.2.1 2007/09/03 06:15:21 max Exp $ *}
                          {* 
Top Row*}
<
table cellpadding="5" cellspacing="0" width="100%">
<
tr
<
td colspan="2" class="HeadLine" height="22">
&
nbsp;<a href="home.php">Home</a> &nbsp;&nbsp;&nbsp;
<
a href="cart.php">Shopping Cart</a> &nbsp;&nbsp;&nbsp;
<
a href="help.php?section=contactus&mode=update">Cont  act Us</a>
<
td class="HeadLine" align="right">
{if 
$usertype eq "C"}
{ include 
file="customer/search.tpl" }
{/if}
</
td>
</
tr>
</
table>
                          {*
Thin Line*}
<
table cellpadding="0" cellspacing="0" width="100%">
<
tr
<
td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
                        {*
Logo Banner*}
<
table cellpadding="0" cellspacing="0" width="100%">
<
tr
<
td class="HeadLogo" height="100"><a href="home.php"><img src="{$ImagesDir}/kookoomonkeylogo2.jpg" width="244" height="100" alt="" /></a></td>
 <
td class="HeadRightBox">
{if 
$usertype eq "C"}
{include 
file="customer/top_menu.tpl"}
{/if}
</
td>
</
tr>
</
table>
                            {*
Thin Line*}
<
table cellpadding="0" cellspacing="0" width="100%">
<
tr
 <
td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</
tr>
{if 
$main ne "fast_lane_checkout"}
<
tr
                  {*
Horizontal Navigation Bar*}
 <
td class="HeadLine" height="45" align="center">
{if 
$config.General.root_categories eq "Y"}
{foreach 
from=$categories item=c}
<
a href="home.php?cat={$c.categoryid}</a>
<
font color="99cccc">{$c.category}{if not %categories.last%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;{/if}</font>{/foreach}
{else} 
{foreach 
from=$subcategories item=c key=catid}
<
font color="99cccc">{$c.category}{if not %categories.last%}&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;{/if}</font>
{/foreach}
{/if}
{if (
$usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1}
<
form action="home.php" method="get" name="sl_form">
<
input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q  UERY_STRING|amp}/>
<
table cellpadding="0" cellspacing="0">
<
tr>
 <
td style="padding-right: 5px;"><b>{$lng.lbl_select_language}:</b></td>
 <
td><select name="sl" onchange="javascript: this.form.submit();">
{
section name=ai loop=$all_languages}
<
option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].codeselected="selected"{/if}>{$all_languages[ai].language}</option>
{/
section}
 </
select></td>
</
tr>
</
table>
</
form>
{else}
&
nbsp;
{/if}
 </
td>
</
tr>
{else}
{* 
Fast Lane Checkout page *}
<
tr
 <
td colspan="2" class="HeadLine">
<
form action="{$xcart_web_dir}/include/login.php" method="post" name="toploginform">
<
input type="hidden" name="mode" value="logout" />
<
input type="hidden" name="redirect" value="{$redirect|escape}/>
<
table cellpadding="0" cellspacing="0" width="100%">
<
tr>
 <
td class="FLCAuthPreBox">
{if 
$active_modules.SnS_connector and $sns_collector_path_url ne '' && $config.SnS_connector.sns_display_button eq 'Y'}
<
img src="{$ImagesDir}/rarrow.gif" alt="" valign="middle" /><b>{include file="modules/SnS_connector/button.tpl" text_link="Y"}</b>
{else}
 <
img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" />
{/if}
 </
td>
{if 
$login ne ""}
<
td align="right" font-color="#ffffff" nowrap="nowrap"><b>{$userinfo.firstname} {$userinfo.lastname}</b> {$lng.txt_logged_in}</td>
 <
td class="FLCAuthBox">
{if 
$js_enabled}
{include 
file="buttons/button.tpl" button_title=$lng.lbl_logoff href="javascript: document.toploginform.submit();" js_to_href="Y"}
{else}
{include 
file="buttons/logout_menu.tpl"}
{/if}
 </
td>
{/if}
</
tr>
</
table>
</
form>
 </
td>
</
tr>
{/if}
<
tr
 <
td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer.gif" class="Spc" alt="" /></td>
</
tr>
{******** 
Remove this line to display how much products there are online ****
<
tr>
{
insert name="productsonline" assign="_productsonline"}
 <
td colspan="2" class="NumberOfArticles" align="right">
{if 
$config.Appearance.show_in_stock eq "Y"}
{
insert name="itemsonline" assign="_itemsonline"}
{
$lng.lbl_products_and_items_online|substitute:"X"  :$_productsonline:"Y":$_itemsonline}
{else}
{
$lng.lbl_products_online|substitute:"X":$_product  sonline}
{/if}
&
nbsp;
 </
td>
</
tr>
**** 
Remove this line to display how much products there are online ********}
{*
{if 
$main ne "fast_lane_checkout"}
<
tr>
 <
td colspan="2" valign="middle" height="32">
<
table cellspacing="0" cellpadding="0" width="100%">
<
tr>
 <
td class="HeadTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></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 class="PrintableRow" align="right">{include file="printable.tpl"}</td>
{/if}
</
tr>
</
table>
 </
td>
</
tr>
{else}
<
tr>
 <
td colspan="2" class="FLCTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td>
</
tr>
{/if}
*}
</
table


If not help:
1. Show your site?
2. What exactly remove interval, there are many of them?

tamicampos 04-28-2008 08:58 AM

Re: Removing Spaces Under/In Head
 
Thank you very much! One more quick question: The right menu is flush to the head line but the left menu still has a space (much smaller than before). I thought that location.tpl was in the way but I don't think that's the problem now. Any ideas?

Yurij 04-29-2008 12:00 AM

Re: Removing Spaces Under/In Head
 
Show your site?
In the standard themes of "X-Cart", I do not see this problem.

PS. Or make a screenshot and put "HTML-text" problematic pages.

tamicampos 04-29-2008 05:28 AM

Re: Removing Spaces Under/In Head
 
Hello,

My URL is www.kookoomonkey.com (it's not too pretty but I am a newbie!!) You can see that there is still a small space between the left menu and the header. How do I get rid of that?

Thanks so much.

Yurij 04-29-2008 06:01 AM

Re: Removing Spaces Under/In Head
 
Quote:

Originally Posted by tamicampos
Hello,

My URL is www.kookoomonkey.com (it's not too pretty but I am a newbie!!) You can see that there is still a small space between the left menu and the header. How do I get rid of that?

Thanks so much.


Problems with tags <br />.
Edit files skin1/customer/home.tpl.
Delete tags "<br />" after lines:

PHP Code:

<table width="100%" cellpadding="0" cellspacing="0">
<
tr


and before:
PHP Code:

{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include 
file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if} 

PS. Or move up this code in the first place after (<td class="VertMenuLeftColumn">) in tpl file.

tamicampos 04-29-2008 11:47 AM

Re: Removing Spaces Under/In Head
 
You Rock! Thanks!!


All times are GMT -8. The time now is 02:33 PM.

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