X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   How to change the background of my website. (https://forum.x-cart.com/showthread.php?t=68748)

maplerockgw 03-31-2017 12:36 AM

Re: How to change the background of my website.
 
My site is also showing the uploaded image only in the top half. Does anybody know how to fix this?

qualiteam 03-31-2017 05:39 AM

Re: How to change the background of my website.
 
What is the site URL? Can we look at it?

maplerockgw 03-31-2017 06:58 AM

Re: How to change the background of my website.
 
Web site URL is www.maplerockguitar.ca

just to expand on this, my background image seems to load in the browser window of any device. but the default image from the nobless theme take over when scrolling down.

qualiteam 04-02-2017 10:32 PM

Re: How to change the background of my website.
 
At the moment the CSS rule that adds the custom background is this one:
Code:

body {
    background-image: url(/var/theme/images/tweed.jpeg) !important;
}


Change it to:
Code:

html, body {
    background-image: url(/var/theme/images/tweed.jpeg);
}


Also, you should tweak the image itself (at the moment it doesn't tile perfectly) and move it out of the "var" directory (XC5 may drop this directory and recreate it when rebuilding the site).

Blainevk 08-29-2022 12:12 AM

Re: How to change the background of my website.
 
Hello Qualiteam,

I tried:

html, body {
background-image: url(/var/theme/images/tweed.jpeg);
}

Using my own code:

html, body {
background-image: url(http://blainestravelclub.com/images/passport_stamp_background.png);
background-repeat: repeat;
background-attachment: fixed;
}

It works immediately when I'm in </> Custom CSS mode, but when I save it, close(X) </> Custom CSS mode, it goes away.

I tried rebuilding the store and that doesn't help.

Any ideas?


All times are GMT -8. The time now is 01:45 AM.

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