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)
-   -   How to Change the Store Logo (https://forum.x-cart.com/showthread.php?t=62548)

JWait 02-05-2012 08:02 AM

Re: How to Change the Store Logo
 
and if that doesn't work try <img src="{$AltImagesDir}/custom/logo.jpg" alt="" />

Marcy 02-05-2012 08:12 AM

Re: How to Change the Store Logo
 
Quote:

Originally Posted by JWait
and if that doesn't work try <img src="{$AltImagesDir}/custom/logo.jpg" alt="" />


I tried this and the link is correct, i.e. the image is supposedly being pulled from /skin/fashion_mosaic_grey/images/custom/logo.jpg which is where I have my logo.

However the stock logo still displays. I even downloaded the file I have there to make sure I didn't accidentally put the stock there, although I was sure I didn't as the stock is a .gif.

Thank you so much for helping. I was going crazy trying to figure this out myself.

JWait 02-05-2012 08:17 AM

Re: How to Change the Store Logo
 
Ok, I found the problem. The image being displayed is company_logo.gif and is called from the altskin.css in the fashion_mosaic_gray/css folder.
Code:

#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;
}


Try changing it there.

Marcy 02-05-2012 08:59 AM

Re: How to Change the Store Logo
 
Thank you so much! I have to leave for work now, but will try it when I get home.

You are way more helpful than the official [useless] manual and the company.

-Marcy

JWait 02-05-2012 09:07 AM

Re: How to Change the Store Logo
 
Let me know how it turns out.. and anything else you need help with.

Marcy 02-05-2012 04:13 PM

Re: How to Change the Store Logo
 
Quote:

Originally Posted by JWait
Ok, I found the problem. The image being displayed is company_logo.gif and is called from the altskin.css in the fashion_mosaic_gray/css folder.
Code:

#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;
}


Try changing it there.


That did it!!! Thank you so much.

May I ask did you just search that out yourself or was it in the documentation somewhere? Because I followed the instructions in the laughingly entitled "instruction manual" and they told me to do something totally different!

JWait 02-06-2012 04:43 AM

Re: How to Change the Store Logo
 
It dawned on me that the image displayed was not x-logo.gif so I looked at the images and figured out it was company_logo.gif. From there I figured that since the image wasn't being pulled from head.tpl the only other place it could come from is a stylesheet so I just opened the altskin. css and searched for company_logo.gif.

The manual is pretty good for how x-cart works but is pretty useless for changing code.

gb2world 02-06-2012 11:56 AM

Re: How to Change the Store Logo
 
If you are going to be making updates to the skin of your x-cart installation, it is best to become familiar with the Webmaster Mode tool and Firebug. Using these two takes much of the guess work out of making updates.

---

Marcy 02-06-2012 11:34 PM

Re: How to Change the Store Logo
 
Quote:

Originally Posted by gb2world
If you are going to be making updates to the skin of your x-cart installation, it is best to become familiar with the Webmaster Mode tool and Firebug. Using these two takes much of the guess work out of making updates.

---


I have installed Firebug. I am very familiar with HTML and css but am having a heck of a time with locations, i.e. finding where the css is stored so I can edit it.

Firebug keeps telling me the css file is at /var/cache/_78b587dcf34f7845d7c396b99838d30c.css

This can't be correct, can it? There actuall is a css file with that name there, but I can't believe that's where the permanent info is stored.

Thanks,
Marcy

gb2world 02-07-2012 12:57 AM

Re: How to Change the Store Logo
 
While debugging CSS and/or javascript (while you are in pre-production), make sure you disable the "Use speed-up tools" in general settings, then you can see the uncached css files using Firefox + Firebug. These tools will tell you exactly what css is being applied to the page. When you are done debugging, you can turn the speed up tools back on.

---


All times are GMT -8. The time now is 08:00 AM.

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