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

Add background image in Light Responsive template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-10-2015, 12:07 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Add background image in Light Responsive template

I have added background images to X-Cart templates in the past, but in the Light Responsive template I have not figured it out. I spent too much time on this, but I'm trying to make the updated site look similar to the old.

All advice is appreciated.

I have and use Firebug and Web Developer for Firefox. I've tried inserting the following into altskin.css
Code:
} body { background-image: url(../images/custom/retr-bg.gif); }
altskin.css is in skin/light_responsive/css and the image is in skin/light_responsive/images/custom. I also tried using an absolute link, http://...

I also tried a similar insertion into skin/common_files/css/main.css.

If you have done this please let me know how it's done.
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #2  
Old 04-13-2015, 03:33 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Add background image in Light Responsive template

That sounds correct. Make sure you:
  • You place the new css late in the altskin.css file after any other body background settings (or at the end of the size breakpoint you are working with)
  • Clear cache or turn off/on speed-up settings for css so it picks up your css changes
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 04-14-2015, 10:25 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Re: Add background image in Light Responsive template

Thanks for the advice.

I use PSPad for editing and searched for conflicting body tags but found none. I inserted the body background line at the end and it made no difference. I did find one misplaced curly bracket, but that change seemed to make no difference. I have minify turned off whenever I'm doing style edits.

I am prone to making syntax errors, so it is still possible that I did something bad somewhere, but have not found it yet.

I wanted to try this new template, but am now wasting time. It was competing with a purchased template, which I will now work with.

Thanks again.
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
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 08:43 AM.

   

 
X-Cart forums © 2001-2020