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

Background image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2005, 04:06 AM
 
rossco rossco is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 97
 

Default 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
__________________
How loud do you want it?

X-Cart Gold 4.0.12 & 17
Reply With Quote
  #2  
Old 02-20-2005, 04:17 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-20-2005, 04:38 AM
 
rossco rossco is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 97
 

Default

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
__________________
How loud do you want it?

X-Cart Gold 4.0.12 & 17
Reply With Quote
  #4  
Old 02-20-2005, 04:42 AM
 
rossco rossco is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 97
 

Default

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
__________________
How loud do you want it?

X-Cart Gold 4.0.12 & 17
Reply With Quote
  #5  
Old 02-20-2005, 04:49 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Sorry, I guess I wasn't clear. Don't ADD that <td> tag, replace the one that is there just below the note.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 02-20-2005, 05:06 AM
 
rossco rossco is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 97
 

Default

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?
__________________
How loud do you want it?

X-Cart Gold 4.0.12 & 17
Reply With Quote
  #7  
Old 02-20-2005, 03:07 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 02-21-2005, 02:03 AM
 
rossco rossco is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 97
 

Default

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

Thanks again
__________________
How loud do you want it?

X-Cart Gold 4.0.12 & 17
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 03:47 PM.

   

 
X-Cart forums © 2001-2020