Post by onqdirector » Mon Jun 13, 2011 10:21 pm

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...

Newbie

Posts

Joined
Mon Jun 13, 2011 10:17 pm

Post by acumen » Tue Jun 14, 2011 4:54 pm

theme/default/stylesheet/stylesheet.css

Newbie

Posts

Joined
Tue May 31, 2011 5:59 pm

Post by onqdirector » Wed Jun 15, 2011 12:35 am

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?

Newbie

Posts

Joined
Mon Jun 13, 2011 10:17 pm

Post by ftntravis » Wed Jun 15, 2011 3:18 am

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.

Newbie

Posts

Joined
Wed Jun 08, 2011 5:04 am

Post by onqdirector » Wed Jun 15, 2011 3:56 am

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...

Newbie

Posts

Joined
Mon Jun 13, 2011 10:17 pm

Post by ftntravis » Wed Jun 15, 2011 7:40 am

Add a body code? Then code that? Haha Idk

Newbie

Posts

Joined
Wed Jun 08, 2011 5:04 am

Post by onqdirector » Wed Jun 15, 2011 8:14 am

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...

Newbie

Posts

Joined
Mon Jun 13, 2011 10:17 pm

Post by ftntravis » Wed Jun 15, 2011 2:04 pm

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;
}

Newbie

Posts

Joined
Wed Jun 08, 2011 5:04 am

Post by qahar » Wed Jun 15, 2011 5:00 pm

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;
...
}

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by onqdirector » Thu Jun 16, 2011 1:02 am

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 ....

Newbie

Posts

Joined
Mon Jun 13, 2011 10:17 pm

Post by TheMikey » Thu Jun 16, 2011 5:48 am

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!

Charm Breeds Jewellery


Newbie

Posts

Joined
Thu Jun 16, 2011 5:43 am
Location - Yorkshire

Post by kmenc » Wed Jul 06, 2011 1:45 am

If you are using or creating a custom theme, make sure the stylesheet path in header.tpl is accurate.

Newbie

Posts

Joined
Wed Jul 06, 2011 1:38 am

Post by plexusdesign » Thu Jul 07, 2011 2:12 pm

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

Newbie

Posts

Joined
Tue Jun 14, 2011 1:52 am

Post by saabmosare » Fri Jul 08, 2011 12:20 am

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

New member

Posts

Joined
Mon Apr 18, 2011 6:22 pm
Who is online

Users browsing this forum: No registered users and 19 guests