View Single Post
  #2  
Old 05-02-2008, 07:54 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: How to remove space below header

Quote:
Originally Posted by jkirkpatrick
I can't seem to figure out how to change my head.tpl file to remove the huge space below my header.

Anyone have any ideas?

My URL is http://www.bellaphotojewelry.com

My head.tpl code is:


Thanks!
Jennifer

Try this code:

PHP Code:
{* $Idhead.tpl,v 1.58.2.1 2007/09/03 06:15:21 max Exp $ *}

<
table cellpadding="0" cellspacing="0" width="780" align="center">
    <
tr
        <
td align="center"><a href="{$http_location}/"><img src="images/header_new.jpg" width="780" height="120" alt="photo jewelry" /></a></td>
    </
tr>
    <
tr valign="top">
        <
td>
            <
table align="center" width="780">
            <
tr>
                <
td valign="top" bgcolor="#FFFFFF">
                    {
literal}
                        <
a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','images/menu_necklaces2.jpg',1)"><img src="images/menu_necklaces.jpg" alt="Photo Necklaces" name="Image16" width="123" height="32" border="0"></a><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/menu_bracelets2.jpg',1)"><img src="images/menu_bracelets.jpg" alt="Photo Bracelets" name="Image15" width="126" height="32" border="0"></a><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image18','','images/menu_gifts2.jpg',1)"><img src="images/menu_gifts.jpg" alt="Photo Gifts" name="Image18" width="138" height="32" border="0"></a><a href="/comparison" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','images/menu_girls2.jpg',1)"><img src="images/menu_girls.jpg" alt="Little Girls Photo Jewelry" name="Image19" width="205" height="32" border="0"></a><a href="/comparison" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','images/menu_wedding2.jpg',1)"><img src="images/menu_wedding.jpg" alt="Wedding Photo Jewelry" name="Image20" width="182" height="32" border="0"></a>
                    {/
literal}
                </
td>
            </
tr>
            <
tr height="24">
                <
td background="images/menu_bottomline.jpg">
                    <
div align="right">
                        <
a href="/comparison" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/menu_artist2.jpg',1)"><img src="images/menu_artist.jpg" alt="Photo Jewelry Artist" name="Image21" width="113" height="24" border="0"></a>
                        <
a href="/comparison" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image22','','images/menu_service2.jpg',1)"><img src="images/menu_service.jpg" alt="Photo Jewelry Artist" name="Image22" width="139" height="24" border="0"></a>
                        <
a href="/comparison" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','images/menu_contact2.jpg',1)"><img src="images/menu_contact.jpg" alt="Photo Jewelry Artist" name="Image23" width="111" height="24" border="0"></a>
                    </
div>
                </
td>
            </
tr>
            </
table>
        </
td>
    </
tr>
</
table>
{*
<
table cellpadding="0" cellspacing="0" width="780">
{if 
$main ne "fast_lane_checkout"}
    <
tr 
        <
td>
            {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.QUERY_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 *}
{if 
$main eq "fast_lane_checkout"}
<
table cellpadding="0" cellspacing="0" width="780" align="center">
    <
tr
        <
td colspan="2" >
            <
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" 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>
    </
table>
{/if}

{******** 
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":$_productsonline}
{/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}
*} 
Reply With Quote