Post by petesspot » Wed Jan 22, 2014 4:32 am

is it possible to ad an image and have it used as a background image for all the pages in open cart?

Newbie

Posts

Joined
Wed Jan 22, 2014 4:23 am

Post by Xyph3r » Thu Jan 23, 2014 2:43 am

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.

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by petesspot » Fri Jan 24, 2014 4:26 am

thanks i will try that, i gather if i omit the " no repete" it will repeat through the whole page ?

Newbie

Posts

Joined
Wed Jan 22, 2014 4:23 am

Post by Xyph3r » Fri Jan 24, 2014 4:37 am

yes..it will repeat....usually is used for patterns.

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by kimbo » Fri May 23, 2014 1:16 am

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!

kimbo
The Chloelina All Natural Soap Co.
chloelina.com


Active Member

Posts

Joined
Thu Aug 29, 2013 10:02 pm

Post by Xyph3r » Fri May 23, 2014 5:57 am

You put the background to the body tag and on the # content div you put backgoound: #fff;

ImageImageImage
Opencart Templates, Modules, Themes & Custom Development | ShopThemer


User avatar
Active Member

Posts

Joined
Sun Feb 10, 2013 1:08 am


Post by kimbo » Fri May 23, 2014 9:26 am

Thanks so much it worked perfectly!

kimbo
The Chloelina All Natural Soap Co.
chloelina.com


Active Member

Posts

Joined
Thu Aug 29, 2013 10:02 pm
Who is online

Users browsing this forum: No registered users and 21 guests