Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

moving logo

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-19-2007, 03:31 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default moving logo

Hi All

Having trouble moving logo over to left to get rid of the unwanted space.
I have read other post in here about how to do it but nothing seems to be working.

It does not look like there should be any padding.
I have cleared the cache several times, with same results.
This is a standard header, not a fancy skin.

Any bod y got any ideas where else I should look?


In the skin1.css

I have this showing

.HeadLogo {

TEXT-ALIGN:left;
PADDING:0;
BACKGROUND-COLOR:#333333;
}


If I use webmaster mode it says to look in the head. tpl.
Have done that as well

<tr>
<td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xmarcalogo.gif" width="244" height="70" alt="" /></a></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_b.gif" class="Spc" alt="" /></td>
</tr>
{if $main ne "fast_lane_checkout"}
<tr>
<td class="HeadLine" height="1">
{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;" class="TopLabel">{$lng.lbl_select_language}:</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}

{/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_b.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_b.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>

As always any and all help is greatly appreciated.
Thanks

Scott V
4.18

PS- Also looked in top_menu.tpl but cellpadding="0"
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #2  
Old 11-19-2007, 05:07 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving logo

Got a url we could see?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-20-2007, 03:10 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: moving logo

Sure.

Site is still rough but here is url
http://www.marcabrahms.zeno.thinkhost.com/xcart

FYI- current logo in the header is only a holding device. Waiting for new one from the client.
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #4  
Old 11-20-2007, 04:08 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving logo

Does the 'Container' class have any padding associated with it?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-20-2007, 04:56 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: moving logo

Hi Balinor,

Thanks for answering and looking,
There is none in the container class, and I can find no padding anywhere else that should be causing this to happen. ( not that it should but have looked at the diallog, vert menus, etc changing those padding to see if I somehow have done something there that would cause it to effect the head.tpl where the logo is housed.

I am contemplating redoing the head .tpl from scratch as perhaps I have messed up something with that. BAffled once again

Scott
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #6  
Old 11-20-2007, 04:58 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving logo

Well, all those nested tables will certainly cause problems with padding/spacing. Sometimes the TD tag will ignore CSS on alignment, so try adding this to the table cells containing the logo:

align="left"
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-20-2007, 05:19 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: moving logo

A good idea
I tried that - but did not change anything.

I think I am going to have to probably try to redo the header.
Maybe its picking up something from the top_menu.tpl, or the tabs.tpl

Neither of these are showing padding though.

Heres a dumb question, don't know if it makes sense. Hope I can explain it right.

Before I redo the header could I try this to see if I can isolate the problem source.

go the head.tpl and edit out {**} top_menu.tpl. to see if that changes anything, if so then open that .tpl and then edity out tab.tpl

Or would this not matter or work ?

Does the top_menu.tpl need to be active for the head.tpl to display
If I can p roceed like this it may at least tell me what is causing the problem.
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #8  
Old 11-20-2007, 05:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: moving logo

Here's what I'd do...create a completely new head.tpl and just put this in it:

<div class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xmarcalogo.gif" width="244" height="70" alt="" /></a></div>

If THAT doesn't left align, you know something is up. Oh and the image is also 67px high, not 70...causing a bit of degrading of the image because of scaling.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 11-20-2007, 05:29 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: moving logo

Thanks Balinor

Will try this code,

I w as aware of the image size difference. I changed it last night in a futile attempt to see if somehow the image might be causing hte problem -

I just tried editing out the top_menu.tpl form the header but that didnlt resolve anyhtnig so I changes it back

Will let you know what happens with the cide

Scott
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #10  
Old 11-21-2007, 10:37 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: moving logo

Hi Balinor,

Wanted to get back to you about the code you sent me to try and move the logo to the left.
Well
I made new head.tpl
used code you sent and it didn't change things. I still have the space there, however I did manage to get my problem solved.

Since this client doesn't really have a graphic logo I was able to get away with using type up there and think it will work out fine. In the event I need to put a logo up there and can't get it to drop out into the background for some reason then I may need to figure out the space problem then. in the mean time - NEXT- Moving on

Thanks again for the help though.

Scott V
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:26 AM.

   

 
X-Cart forums © 2001-2020