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)
-   -   Replace top_image.jpg with gif (https://forum.x-cart.com/showthread.php?t=53658)

minfinger 05-08-2010 02:02 PM

Replace top_image.jpg with gif
 
I'd like to replace my /skin1/images/custom/top_image.jpg with an animated gif and I can't figure out which tpl it's assigned it.

Yes I've used the Webmaster Mode.

Shamun 05-08-2010 02:36 PM

Re: Replace top_image.jpg with gif
 
Have you used firebug to see if its a background-image and actually in the css?
If not, it's probably in /skin1/customer/head.tpl

minfinger 05-08-2010 03:01 PM

Re: Replace top_image.jpg with gif
 
Quote:

Originally Posted by Tal
Have you used firebug to see if its a background-image and actually in the css?
If not, it's probably in /skin1/customer/head.tpl


I'm unfamiliar with firebug.

However I've check the main.css and I don't see it.

minfinger 05-09-2010 01:03 PM

Re: Replace top_image.jpg with gif
 
PS. Firebug is nasty!!! Just installed...Thanks for the tip!

http://getfirebug.com/

minfinger 05-11-2010 07:39 AM

Re: Replace top_image.jpg with gif
 
Tal, unfortunately Firebug did not get me any closer to figuring out where the file is called from.

Mostly because I don't understand firebug all to well, but hey.

minfinger 05-11-2010 09:31 AM

Re: Replace top_image.jpg with gif
 
HA! I found that little sucker.

It's in the skin1\altskin.css file

Code:

#header .line1 .logo {
  background: url(images/custom/top_image.jpg) no-repeat right top;
  height: 192px;
  position: relative;
  padding-top: 0px;
  margin-left: 0px;
  width: auto;
}


I put my bannerdogs.gif in the skin1/images/custom/ folder change the top_image.jpg to bannerdogs.gif and tada!!!

I would also think that if you had a Flash File you could modify the head.tpl file and insert it in here somewhere.
Code:

{*
$Id: head.tpl,v 1.20 2009/06/05 11:46:27 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<div class="line1">
  <script src="{$SkinDir}/hr.js" type="text/javascript"></script>
  <div class="logo">
    <div class="logo1">
      <a onclick="javascript: $('#hr_menu').hide();" href="{$catalogs.customer}/home.php"><img src="{$ImagesDir}/custom/company_logo.gif" alt="" /></a>
      <div class="logo2"><img src="{$ImagesDir}/spacer.gif" alt="" /></div>
    </div>
  </div>



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

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