Jump to content

change background to image? code not working?


Recommended Posts

Hello all,

I'm trying to change the background colour of my theme to an image. I'm using the following code which I think is correct, but it seems to have no effect?

 body {
background-image: url ("../themes/basartronic/img/bg.jpg") repeat-x;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
color: #5D717E;
text-align: center;



Any help would be great!

Link to comment
Share on other sites

You were so close. This is what worked for me.
Edit this file: /public_html/themes/prestashop/img/global.css file as follows:

body {
   background-color: transparent;
   background-image: url('../img/page_t.jpg');
   background-repeat: repeat-x top right;
   font-size: 11px;
   font-family: Verdana, Arial, Helvetica, Sans-Serif;
   color: #5d717e;
   text-align: center
}



Make sure to put the image you want to use for your background into the /public_html/themes/prestashop/img/ folder.
In my case, the image was named page_t.jpg and the size is only 350x226.

Link to comment
Share on other sites

×
×
  • Create New...