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

greyseal 08-06-2009 05:00 PM

Company Logo
 
I have uploaded a new Company logo tacslogo.png to:
Edit Templates > Images and
Edit Templates > Customer > Images
and have altered the Smarty Templetes:
Skin1/Customer/heatd.tpl and
Skin 1/head.tpl to read:

{*
$Id: head.tpl,v 1.65 2008/11/25 11:03:29 cray Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/tacslog.png" width="550" height="67" alt=""

My logo reads in the cart management pages but not on the live site.
I cleared the cache under: Summary > Tools>Clear templates cache
I removed the company_logo.gif from
Skin1/images/fashion_mosaic
My URL http://theaircleanerstore.com/store/

What next?
X Cart 4.21

cflsystems 08-06-2009 05:14 PM

Re: Company Logo
 
Your store front actually reads "<a alt="" href="*}/tacslogo.png"/>" so you clearly have something wrong in your skin1/customer/head.tpl
Double check the call for the image there

greyseal 08-06-2009 05:43 PM

Re: Company Logo
 
Thank you. The code need to be altered

<td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/tacslogo.png" width="550" height="67" alt="" /></a></td>

That did the trick!

greyseal 08-06-2009 06:13 PM

Re: Company Logo
 
A new but related problem. The head of my web page has lost some of it's formating and is scrunched together. I increased the height of my logo, and it helped some, but is still a problem.
www.theaircleanerstore.com/store

greyseal 08-06-2009 06:24 PM

Re: Company Logo
 
I have restores the code to the original, with the addition of my company logo. I think the change of code corrupted the formating, so better to start from the original code.

ARW VISIONS 08-06-2009 08:50 PM

Re: Company Logo
 
check this CSS.
The css uses a background image for the l;ogo no an inline <img> tag.


#header .line1 .logo a:link,
#header .line1 .logo a:visited,
#header .line1 .logo a:hover,
#header .line1 .logo a:active
{
display: block;
width: 228px;
height: 50px;
background: transparent url(images/fashion_mosaic/company_logo.gif) no-repeat left top;
}
#header .line1 .logo img {
display: none;
}

worldomega 01-01-2010 09:52 AM

Re: Company Logo
 
They seem to have changed this in 4.3.0. Has anyone tried to modify company_logo size in 4.3 yet?

gizmo 01-01-2010 10:27 AM

Re: Company Logo
 
On Light and Lucid 4.3.0:
Original:
Main.css
#header .line1 .logo a img {
height:48px;
width:203px;
}

Customer/head.tpl

<div class="line1">
<div class="logo">
<a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/xlogo.gif" alt="" /></a>
</div>

MY CHANGES
#header .line1 .logo a img {
width: 200px;
height: 60px;
}

<div class="line1">
<div class="logo">
<a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/abeezcustom/yourlogo.gif" alt="Way Hay A Logo Change" /></a>
</div>


Hope this is what you mean, works as it should

gizmo 01-01-2010 10:37 AM

Re: Company Logo
 
Just for the record better to add following
title="Way Hay A Logo Change"

Or just title, not sure of web standard (Need to check that) but as far as I know just having "Alt" will not show in firefox

So it will be
<div class="line1">
<div class="logo">
<a href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/abeezcustom/yourlogo.gif" alt="Way Hay A Logo Change" title="Way Hay A Logo Change"/></a>
</div>

Don't know what skin your using, but I would assume it's almost same, agin firefox bug will give you what you need (Most of the time)..

Tim Glavin 01-06-2010 12:52 AM

Re: Company Logo
 
I found this thread and was interested in the information about that Xlogo.gif file and placement in X-cart 4.3.
I am using the neon lights template.
When I went to the CSS in main.css and changed the setting for width and height.
It made no change to xlogo.gif

If you right click on that logo in a browser and read its properties, it says...
159px в 47px (scaled to 205px в 26px)

Does anyone know where this scaling is set and how to change it?
It does not work at the CSS settings mentioned just above.

No matter what image I put there, it alters it to fit the scale settings.


All times are GMT -8. The time now is 03:00 PM.

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