Post by swingman » Sun Oct 28, 2018 3:35 pm

Hey everyone,

How do I change the background color or add a background image for 3.0 default theme?

I've tried looking through the stylesheet but cannot find the correct line to edit.

Thanks in advance.

Newbie

Posts

Joined
Sun Oct 28, 2018 3:32 pm

Post by oc-extensions » Mon Nov 05, 2018 12:27 am

Hi,

File: catalog/view/theme/default/stylesheet/stylesheet.css

find rule

Code: Select all

body {
and add

Code: Select all

body {
background-color: #000;
background-image: url('path/to/background/image/file.png');
background-repeat: no-repeat; // or how you want
}
#000 = black color in bg; change it with color you want

Good luck!

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by ostechnologies » Mon Nov 05, 2018 2:41 pm

Either you can use the method given by OC-extensions or if you want to make changes to any particular template then navigate to Admin/Design/Theme Editor, here select your theme and makes changes to the template file.

Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt

Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company


User avatar
Active Member

Posts

Joined
Mon Apr 06, 2015 1:30 pm
Who is online

Users browsing this forum: No registered users and 64 guests