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)
-   -   Background image (https://forum.x-cart.com/showthread.php?t=12287)

rossco 02-20-2005 04:06 AM

Background image
 
In our current stir at www.ross-co.co.uk/shop we have an image of a speaker set as the background. How do I go about setting this image as the background in X-Cart?

Thanks

balinor 02-20-2005 04:17 AM

Assign a class to the cell that you want the image to appear in. Most likely this will be in customer/home.tpl, the cell for the central space. So your <td> tag would look like this <td class="speaker">.

Now go into skin1.css and add this:

Code:

.speaker {
      BACKGROUND: URL(images/yourimagename.jpg);
      BACKGROUND-REPEAT: no-repeat;
      BACKGROUND-POSITION: 50% 50%;
}


Upload the image to the skin1/images folder.

That will set the background image to be centered in the cell and non-repeating. Hope this helps!

rossco 02-20-2005 04:38 AM

Thanks for the quick response.

As yet I still cant get the image to display.

Is there any particular place in customer/home.tpl that I should be placing the text <td class="speaker">

Thanks again and please excuse my stupidity

rossco 02-20-2005 04:42 AM

Ok. I got it to display but it shifts the product display down the page quite a bit. Also the background image is slightly cropped.

http://www.ross-co.co.uk/xcart/home.php

Check it out

balinor 02-20-2005 04:49 AM

Sorry, I guess I wasn't clear. Don't ADD that <td> tag, replace the one that is there just below the note.

rossco 02-20-2005 05:06 AM

Cheers

With your assistance and a website of CSS I got it done,

Thanks again

Just one more question. Is there a way to stop the head from scrolling, ie keep the company logo and speed bar fixed?

balinor 02-20-2005 03:07 PM

Glad I could help.

You could keep the 'head' from scrolling by using frames, but I highly discourage it. Not only will it be a bear to implement, but it is considered an outdated method of coding, and frankly I don't even know if X-cart would work in a frame. Best to stick with what works :)

rossco 02-21-2005 02:03 AM

I really want to keep away from frames anyway. Our current shop uses it and SEO is a nightmare with it.

Thanks again


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

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