Zen Cart Logo
Forums / General Questions / Change the colour......

Change the colour......

Locked

Views: 2,080

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
28 Sep 2008, 6:08 PM
#1
truliebliss avatar

truliebliss

New Zenner

Join Date:
Sep 2008
Posts:
41
Plugin Contributions:
1

Change the colour......

Hi all im wanting to change the colour of the center colum where it says welcome guest because my pictures have a white background. My background at the moment is gray but im wanting my pics to blend in with the background, i want it on the product info pages to but want to keep the right and left colum in the gray colour. I know its something to do with the stylesheet but cant seem to find it can anyone help with this 1?

Thanks

28 Sep 2008, 6:17 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Change the colour......

You can find this in your stylesheet, and separate the .center column out and add background-color:#XXXXXX;

.centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix {
padding: 0.8em;
}

so:

.centerColumn {
padding: 0.8em;
background-color:#XXXXXX;
}

28 Sep 2008, 6:25 PM
#3
truliebliss avatar

truliebliss

New Zenner

Join Date:
Sep 2008
Posts:
41
Plugin Contributions:
1

Re: Change the colour......

Hi, thanx for that its going in the right direction but it only goes half way down the page so the bottom half is still gray??

28 Sep 2008, 6:42 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,771
Plugin Contributions:
9

Re: Change the colour......

<SOAPBOX> Unless you have a 100% guaranteed STOCK template, no one can adequately address your problem (or many others presented in the forum) without the URL of your site. </SOAPBOX>

Very few psychics available.

28 Sep 2008, 6:59 PM
#5
truliebliss avatar

truliebliss

New Zenner

Join Date:
Sep 2008
Posts:
41
Plugin Contributions:
1

Re: Change the colour......

Hi, here is the web link to my site: www.truliebliss.com
Thanx

28 Sep 2008, 7:19 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,771
Plugin Contributions:
9

Re: Change the colour......

around lines 246 and 258 in your stylesheet, you have a background color and image. Removing the color will stop the gray from showing at startup.

If you don't use firefox as a browser, I would get it along with the firebug add-on. They can be an invaluable tool in fixing these kind of things.

28 Sep 2008, 7:26 PM
#7
truliebliss avatar

truliebliss

New Zenner

Join Date:
Sep 2008
Posts:
41
Plugin Contributions:
1

Re: Change the colour......

Hi, ive done as you said but it is still the same, it only seems to be with the new products of the month on, its fine when lookin at a product but does the same when looking at the sub cats?

28 Sep 2008, 8:42 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,771
Plugin Contributions:
9

Re: Change the colour......

can't see it with down for maintenance.

try using firebug to inspect the area you are trying to fix.

28 Sep 2008, 9:14 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change the colour......

One shortcoming of the standard template coding is that there is no way to address the center <td> element uniquely. If you edit /includes/templates/your_template/common/tpl_main_page.php in this area:```php

<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td> <?php } ?> <td valign="top"> ```to add an id to the <td>, you can style the entire center section in your stylesheet.```php <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td> <?php } ?> <td id="centerColumn" valign="top"> `````` #centerColumn {background-color: #aabbcc;} ```
29 Sep 2008, 12:20 AM
#10
truliebliss avatar

truliebliss

New Zenner

Join Date:
Sep 2008
Posts:
41
Plugin Contributions:
1

Re: Change the colour......

Well thanx alot gjh42 that sorted the problem:clap:

Great stuff!!!

29 Sep 2008, 2:55 PM
#11
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,771
Plugin Contributions:
9

Re: Change the colour......

Just like with other programs, there's lots of ways to "fix" css in Zen.

The quickest way to eliminate the offending background and (IMHO) make the site look "cleaner" could have been to remove background-image, -position, and -repeat from the mainWrapper call on line 174 of the css. This also allows the use of separate backgrounds for each of the side columns.

I had to do strange things to my laptop to even see the gray. :huh:

29 Sep 2008, 7:40 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change the colour......

Yes, in this case, eliminating the #mainWrapper background and cutting the image to place the appropriate parts in #navColumnOne & Two would have been a better solution.

30 Sep 2008, 5:14 PM
#13
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Change the colour......

THANKS GLENN! It worked for me too! Just what I was looking for!

Vince