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

change size of logo

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-27-2008, 05:56 PM
 
nivag nivag is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 76
 

Default change size of logo

First please dont shout at me

I have looked thru the existing posts and have tried everything that people have said....

I want to a add my own logo to the top left where xlogo.gif currently is...

I can do this fine - simply replace the file with my own logo - but no matter what I do the image is squished...

I have tried changing the image dimensions and uploading again - no joy

I have tried changing the size in the head.tpl (both using the template editor and ftp in case that made a difference)

Nothing seems to change the image size

Am I being really dumb or is there a problem with xcart ?
Reply With Quote
  #2  
Old 11-28-2008, 12:14 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: change size of logo

Show me that you changed in the code of the file "skin1/head.tpl" (for size logo)?
Reply With Quote
  #3  
Old 11-28-2008, 05:35 AM
 
nivag nivag is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 76
 

Default Re: change size of logo

Hi Yurji...

I change the code near the top of the head.tpl file: the width and height and kept the filename the same as default xlogo.gif to make it easier...

<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.gif" width="244" height="67" alt="" /></a></td>
<td class="HeadRightBox">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</td>
</tr>
</table>
Reply With Quote
  #4  
Old 11-28-2008, 07:28 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: change size of logo

Quote:
I change the code near the top of the head.tpl file: the width and height and kept the filename the same as default xlogo.gif to make it easier...

SInce some browsers cache images, try renaming your file, upload it to /skin1/images and set the exact image size in the width="244" height="67" params.

better now?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 11-28-2008, 08:02 AM
 
nivag nivag is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 76
 

Default Re: change size of logo

This is getting even more weird - I changed the file to xlogo.jpg cleared all the cache etc - deleted the xlogo.gif file from the server - reloaded the site and the logo doesnt show, just a red x - checked its properties and says its still looking for the xlogo.gif file and at 290*68 pixels !

heres the entire head.tpl - hope I am missing something silly

{* $Id: head.tpl,v 1.58.2.8 2008/07/22 07:58:27 ferz Exp $ *}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xlogo.jpg" width="125" height="125" 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.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>
{if !$js_enabled}
<td><input type="image" {include file="buttons/go_image.tpl"} /></td>
{/if}
</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|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>{if $userinfo.firstname or $userinfo.lastname}{$userinfo.firstname} {$userinfo.lastname}{else}{$login}{/if}</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/button.tpl" button_title=$lng.lbl_logoff href="javascript: document.toploginform.submit();" js_to_href="Y" image_menu=true type="input"}
{/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}

</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>
Reply With Quote
  #6  
Old 11-28-2008, 08:06 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: change size of logo

do you have your smarty prefs in Smarty.class.php set to

var $compile_check = true;

If it set to false, then NOTHING that you do to a template will ever be updated.

You can also force clear your template cache, buy running:

yoursite.com/cleanup.php
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 11-28-2008, 11:28 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: change size of logo

Are you sure you uploaded the correct head.tpl. Maybe you have uploaded it from the distributive or a back up or something. I have done this before. Made changes to a file but was uploading the wrong file. Just a thought.
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 11-28-2008, 01:55 PM
 
nivag nivag is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 76
 

Default Re: change size of logo

Figured it out but dont know how/why mine is different than others....

Edited file: /customer/home.tpl

this has the same bit of code as the head.tpl where the logo and size are entered... altered this and it worked...

Hopefully this might help someone else with the same problems... or someone can explain why my head.tpl doesnt seem to have any affect but this file does
Reply With Quote
  #9  
Old 12-01-2009, 02:57 PM
 
ronstop ronstop is offline
 

Member
  
Join Date: Nov 2005
Posts: 26
 

Default Re: change size of logo

Any suggestions for v4.3?
I need to change the logo size, too.
__________________
Version 4.1.10
Reply With Quote
  #10  
Old 12-02-2009, 09:10 AM
 
ronstop ronstop is offline
 

Member
  
Join Date: Nov 2005
Posts: 26
 

Default Re: change size of logo

The solution found here worked for me:

http://forum.x-cart.com/showthread.php?t=50645&page=6&highlight=logo+size

I had to alter the skin1/altskin.css file.
__________________
Version 4.1.10
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 04:38 PM.

   

 
X-Cart forums © 2001-2020