Jump to content

Adding image background on Prestashop default template


Recommended Posts

No still the same problem

 

here is what I put in the css file

 

body {

background-color: white;

background-image:url(Streamline_Blue_Wallpaper_by_joby866.png) fixed;

font-size: 11px;

font-family: Verdana, Arial, Helvetica, Sans-Serif;

color: #5d717e;

text-align: center

 

If you look at the link. www.zerohalliburton.no

 

That is how the website is with the code mentioned above.

 

Any help would be greatly appreciated/

Link to comment
Share on other sites

Just having url is not enough the url must point to the folder that contains the image file so if the image is in the img folder it would look like this:

 

background: url(../img/Streamline_Blue_Wallpaper_by_joby866.png) fixed;

 

if you put the image in the img folder in themes/prestashop it would look like this:

 

background: url(../themes/prestashop/img/Streamline_Blue_Wallpaper_by_joby866.png) fixed;

 

Once you have this correct you will need to add a background color to the #page heading in global.css or the background image will be visible through the the web site. (you will see what I mean)

Add this under the #page heading background-color: white

Link to comment
Share on other sites

I spent many days fixing the background on something that should have been done in no time.

 

1. I use dreamweaver. I connected my website server using dreamweaver. ( Web url : public_html/themes/prestashop/img/

Root directory public.html

 

 

2. I uploaded all the image I wanted to use into prestashop/img/

 

3. I used this code

 

body {

background-image:url(/public_html/themes/prestashop/img/modern.jpg);

font-size: 12px;

font-family: Verdana, Arial, Helvetica, Sans-Serif;

color: #5d717e;

text-align: center

 

 

4. This no image when I update the site.

 

5. Although when I only change color the site changed color. But not when I try to change the background image.

 

6. The path seem to be wrong. I don't know what to do in this regard.

 

?

Link to comment
Share on other sites

  • 2 weeks later...

For those looking for an answer:

 

I had problems with this as well.

apparently the background-image: command has problems or so as adding an url behind this does nothing, but this line works (for me):

 

body {

background: #e5e5e5 url(../img/mybackgroundpic.gif) no-repeat;

 

 

So don't add background-image: in front of url.

Hope this helps

 

Cheers,

Pascal

Link to comment
Share on other sites

What your issue was is where the background color was placed. Css like other languages relies on the last option presented. Yours was the color. So it was showing the color. The way you have it now it is the image, so if the image does not load it will show the color.

Link to comment
Share on other sites

  • 1 year later...

Hi

 

A little help here please. 

 

I read and try everything that was said early in this topic but still no luck can someone help me find what is wrong in the css file ?

 

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

Thank you for your help

Irene

Link to comment
Share on other sites

Hi

 

Yes the fils existe on my folder and i put it on my server i check and the image works fine

 

I try with 2 dots and adding the space before the no-repeat and send it to my server using FZ and still no luck 

 

any other idea ?

 

Thank you for your quick response

Irene

Link to comment
Share on other sites

I try to change the background color and it's working ..  

 

I verify the path to make sure i am doing everything right and i didn't find anything wrong ( it doesn't mean i am doing things right ) 

 

When i erase the no-repeat on my website i see multiple question point on my background

 

Any idea ?

 

Thanks for all your help it's greatly appreciated

Irene

Edited by MFsuccess (see edit history)
Link to comment
Share on other sites

I find what was wrong !!!!! hurray !

 

look :
 

body {
background-color: #FFFFFF;
background-image: url('../img/background_1.jpg');
font-size: 11px;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
color: #5d717e;
text-align: center

in my case i just add the line: background-image:  '../img/background_1.jpg' and keep the line background-color: #FFFFFF;

 

Thank you for all of your help hope this will help someone else too

 

Irene

Edited by MFsuccess (see edit history)
Link to comment
Share on other sites

 

I find what was wrong !!!!! hurray !

 

look :

 

body {
background-color: #FFFFFF;
background-image: url('../img/background_1.jpg');
font-size: 11px;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
color: #5d717e;
text-align: center

in my case i just add the line: background-image:  '../img/background_1.jpg' and keep the line background-color: #FFFFFF;

 

Thank you for all of your help hope this will help someone else too

 

Irene

 

 

glad to hear that you solved it :) when your website will be ready don't forget to share it in Test my site! section :)

Link to comment
Share on other sites

  • 1 year later...

In case someone still has that kind of problems ...

Just know that with the default prestashop theme ... all background of most items seems to be set to white ... and not transparent ... so no chance (even with the right url poiting to the right image) to see anything unless you set all backgrounds for all items to transparent

 

AB..

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...