carinac Posted May 10, 2016 Share Posted May 10, 2016 Is there a way to have different background image every time someone comes onto the site? So it changes between a handful of images? Link to comment Share on other sites More sharing options...
presta4you.com Posted May 10, 2016 Share Posted May 10, 2016 Prestashop don't have this functionality, but check addons.prestashop.pl, probably this module exist. Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2016 Share Posted May 10, 2016 it's possible to do this with css $images: ('http://link-to-image-1', 'http://link-to-image-2', 'http://link-to-image-3'); $img: nth($images, random(length($images))); body { background: url($img) top center no-repeat; } Link to comment Share on other sites More sharing options...
carinac Posted May 10, 2016 Author Share Posted May 10, 2016 it's possible to do this with css $images: ('http://link-to-image-1', 'http://link-to-image-2', 'http://link-to-image-3'); $img: nth($images, random(length($images))); body { background: url($img) top center no-repeat; } In the global css? That is all? feels like there would be more to add somewhere. Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2016 Share Posted May 10, 2016 yes global.css, anywhere you want (the best: at the end) maybe it will be necessary to add !Important here body { background: url($img) top center no-repeat!important; } if you want to rotate background only - that's all :-) Link to comment Share on other sites More sharing options...
carinac Posted May 11, 2016 Author Share Posted May 11, 2016 yes global.css, anywhere you want (the best: at the end) maybe it will be necessary to add !Important here body { background: url($img) top center no-repeat!important; } if you want to rotate background only - that's all :-) Hmm, it isn't working. I noticed my background image is in the wrapper so I did .wrapper { background: url($img) top center no-repeat!important; } instead, but that also didn't work. Thanks though! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now