Jump to content

Background Image.


Recommended Posts

howdy all, 

Ive had a quick search and cant seem to find much on it, 

ive got prestashop 1.5.6.1 installed. im trying to change the background in the default template.

ive found the global.css and located the generic style section, 

Ive edited it as follows.
 

body{
background-image: url(‘../img/bg.jpg’);
font:normal 11px/14px Arial, Verdana, sans-serif;
color:#222;
background:#fff
}
body.content_only {
background: #FFF;
}


ive also put bg.jpg in the /img/ folder and its not displaying... ive also tried putting it in the img folder in the template and changed the url accordingly and got nothing.. then i tried a full url and still nothing.

heres the link.. its just a test shop to find my way around the back end.
http://opentempofm.com/devspace/prestashop/index.php
 
Heres the bg file.
http://opentempofm.com/devspace/prestashop/img/bg.jpg

a
ny pointers as to where im going wrong would be great!

thanks all :)
Link to comment
Share on other sites

First because you have Prestashop installed in a sub directory you need to go deeper with the url.

Second the marks you used to enclose the URL are wrong I fixed this in the code below.

Last is that you have a second background overiding the image, change the lines as I show below and your good to go.

 

ps: if you want the background static add fixed after      url('../../../img/bg.jpg')fixed;

 

body{
background-image: url('../../../img/bg.jpg');
font:normal 11px/14px Arial, Verdana, sans-serif;
color:#222;
 
}
 
Now if you don't want the image to show through the modules in the center of the page add background:white or #fff to the page{}
 
 
#page {background:white}
Edited by tdr170 (see edit history)
Link to comment
Share on other sites

thanks for the reply!
Ive tried what you said, but unfortunately it didnt work :/

Generic style:
 

body{
background-image: url(../../../img/bg.jpg)fixed;
font:normal 11px/14px Arial, Verdana, sans-serif;
color:#222;
background:#fff
}
body.content_only {
background: #FFF;
Link to comment
Share on other sites

×
×
  • Create New...