Page 1 of 1
Background image
Posted: Wed Jan 22, 2014 4:32 am
by petesspot
is it possible to ad an image and have it used as a background image for all the pages in open cart?
Re: Background image
Posted: Thu Jan 23, 2014 2:43 am
by Xyph3r
yes..via css
http://www.w3schools.com/css/css_background.asp
you must edit "catalog/view/theme/* your theme * /stylesheet/stylesheet.css and add the folowing property to the "body" tag at the begining of the stylesheet.
Code: Select all
background : url('../image/image_name.jpg') no-repeat center;
Check the page above and see what you can do.
Re: Background image
Posted: Fri Jan 24, 2014 4:26 am
by petesspot
thanks i will try that, i gather if i omit the " no repete" it will repeat through the whole page ?
Re: Background image
Posted: Fri Jan 24, 2014 4:37 am
by Xyph3r
yes..it will repeat....usually is used for patterns.
Re: Background image
Posted: Fri May 23, 2014 1:16 am
by kimbo
Xyph3r wrote:yes..it will repeat....usually is used for patterns.
Know this is an old thread but I am having the same issue with my background.
I have a pattern background.png file but I would like it to display at the header and sides of the page instead of the complete page. Within the content area I would like white. How could I achieve this?
Thanks!
Re: Background image
Posted: Fri May 23, 2014 5:57 am
by Xyph3r
You put the background to the body tag and on the # content div you put backgoound: #fff;
Re: Background image
Posted: Fri May 23, 2014 9:26 am
by kimbo
Thanks so much it worked perfectly!