Page 1 of 1

How Do I Change Browser Background Color in Opencart 1.5

Posted: Mon Jun 13, 2011 10:21 pm
by onqdirector
I need to figure out how I can modify the background color of my opencart 1.5 site for the default template. please help, customer from hell wants to see the changes right away I cant find the line of code governing it...

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Tue Jun 14, 2011 4:54 pm
by acumen
theme/default/stylesheet/stylesheet.css

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 12:35 am
by onqdirector
I went there and changed every hexadecimal color code individually and updated to see changes, none of them changed the browser background color... which line of code am i looking for specifically?

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 3:18 am
by ftntravis
body {
background-color:#000;
}

You would use that to make your background black. Changing the body will affect the whole site ;) You would edit the style sheet as described above and then upload it. Hope this helps.

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 3:56 am
by onqdirector
ftntravis, thanks for trying to help, but that line of code does not exist in opencart 1.5 update I am looking here where i believe it should be and has been in previous versions.... catalog/view/themes/default/stylesheet/stylesheet.css I have looked for it several times...

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 7:40 am
by ftntravis
Add a body code? Then code that? Haha Idk

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 8:14 am
by onqdirector
i tried it... no luck... i copied the code you sent me into the stylesheet.css saved uploaded to ftp and refreshed, cleared cookies cache history etc nothing, i need to change it soon too...

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 2:04 pm
by ftntravis
hmm found this in the 1.5 style sheet

body {
margin: 0px;
padding: 0px;
text-align: center;
background-color:#000;
background:url(../image/blueback.png) #000 center top no-repeat;
background-attachment:fixed;
}

try adding this code to see if it will change the bg color:

body {
background-color:#000 !important;
}

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jun 15, 2011 5:00 pm
by qahar
No need to use both:

Code: Select all

body {
...
   background-color:#000;
   background:url(../image/blueback.png) #000 center top no-repeat;
...
}
try this

Code: Select all

body {
...
   background:#000 url(../image/blueback.png) center top no-repeat;
...
}

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Thu Jun 16, 2011 1:02 am
by onqdirector
what style sheet are you looking at? This code youve suggested doesn't exist in mine. I am using opencart 1.5.0.4 and looking at the file found in this directory..... upload/catalog/view/theme/default/stylesheet/stylesheet.css

Not in my stylesheet.css in the default theme...

body {
margin: 0px;
padding: 0px;
text-align: center;
background-color:#000;
background:url(../image/blueback.png) #000 center top no-repeat;
background-attachment:fixed;
}

I just want to change the background color of the site, doesnt anyone know how to do this????, it cant be that hard. someone has to have used this new version of opencart and found this css parameter ....

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Thu Jun 16, 2011 5:48 am
by TheMikey
Hi

I've just installed v 1.5.0.4 and started fiddling with it for the first time...

In my upload/catalog/view/theme/default/stylesheet/stylesheet.css I have a style definition for BODY. I think you will too. Are you sure that you aren't editing upload/catalog/view/theme/default/stylesheet/slideshow.css by mistake?

I can't imagine a main stylesheet WITHOUT a definition for the body tag!

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Wed Jul 06, 2011 1:45 am
by kmenc
If you are using or creating a custom theme, make sure the stylesheet path in header.tpl is accurate.

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Thu Jul 07, 2011 2:12 pm
by plexusdesign
At the top of the default stylesheet you see:

html {
overflow: -moz-scrollbars-vertical;
margin: 0;
padding: 0;
}

adding it in like this where #000000 is the hex color that you want for the background."

html {
background:#000000;
overflow: -moz-scrollbars-vertical;
margin: 0;
padding: 0;
}


works for me

Re: How Do I Change Browser Background Color in Opencart 1.5

Posted: Fri Jul 08, 2011 12:20 am
by saabmosare
Got the same problem, solved it by changing in defult theme.
Impossible to change in my current theme couse the changes want show upp. :s

1.5.0.5