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 Your Logo Over... (https://forum.x-cart.com/showthread.php?t=33855)

crcool75 09-11-2007 01:03 PM

Moving Your Logo Over...
 
Hello,

Could someone please tell me how to move my logo at the top, left hand corner of the screen over to the left a little more? There's a blank area to the left of the logo that I'd like to reduce.

Thanks

balinor 09-11-2007 01:10 PM

Re: Moving Your Logo Over...
 
crcool, please be sure to read which forum you are posting in, this is clearly a template editing question, so I'm moving it to the Template Editing forum.

Have a look at head.tpl, you'll see the code for the logo. Depending on your skin, you'll probably need to remove the table cell spacing it to the right.

crcool75 09-11-2007 01:22 PM

Re: Moving Your Logo Over...
 
Thanks balinor, I was thinking "New Installation" because that's what this is. :)

It's doesn't appear to be in head.tpl. There's nothing before the logo that I'm aware of.

balinor 09-11-2007 01:27 PM

Re: Moving Your Logo Over...
 
It isn't 'New Installation' it is Installation and setup, which covers installing the cart and configuring it. Changing the look and feel questions go in Storefront Design and Template Editing :)

Post your head.tpl, as you are using an older version of the cart that not all of us remember so well :)

crcool75 09-11-2007 01:43 PM

Re: Moving Your Logo Over...
 
Oops, I forgot to change my signature. We're upgrading from 4.0.14 to 4.1.8. Here's my head.tpl file:

{* $Id: head.tpl,v 1.58 2006/03/17 08:50:44 svowl Exp $ *}
<table cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#000000" align ="left">
<td class="HeadLogo" bgcolor="#FFFFFF" width="700"><div align="left"><a href="{$http_location}/"><img src="{$ImagesDir}/logo.jpg" width="700" height="81" alt="" /></a></div></td>
<td class="HeadRightBox">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if} </td>
</tr>
</table>
<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>
<td class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</td>
<td class="HeadLine" align="right">
{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}" />
<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>
{/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>

balinor 09-11-2007 01:49 PM

Re: Moving Your Logo Over...
 
That info would have helped in the beginning :(

Look at this class in skin1.css and remove the left padding:

HeadLogo

crcool75 09-11-2007 04:17 PM

Re: Moving Your Logo Over...
 
Ohhh, you're awsome, balinor! Thanks!

iry 11-13-2007 07:17 PM

Re: Moving Your Logo Over...
 
Quote:

Originally Posted by balinor
That info would have helped in the beginning :(

Look at this class in skin1.css and remove the left padding:

HeadLogo


I also trying to do this. I am doing what balinor says - remove the left padding from skin1.css
this is what i have
.HeadLogo {
PADDING-LEFT: 27px;
TEXT-ALIGN: left;

And when i remove it

.HeadLogo {

TEXT-ALIGN: left;
it does not do anything to the logo.

balinor 11-14-2007 04:20 AM

Re: Moving Your Logo Over...
 
Be sure to clear your template cache after you make the change - you can do this via your Summary screen or by running yourdomain.com/cleanup.php. Also refresh your browser multiple times, sometimes it 'sticks'.

SystemSkins 11-14-2007 04:56 AM

Re: Moving Your Logo Over...
 
Sometimes it's an easy oversight.... don't forget to close it with a }
Code:

.HeadLogo {
TEXT-ALIGN: left;
 }

Happens to me all the time /slaps forehead


All times are GMT -8. The time now is 11:51 AM.

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