Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Change the colour......

Change the colour......

Locked
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

Post #1 by truliebliss

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

Post #2 by stevesh

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

Post #3 by truliebliss

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,930
Plugin Contributions:
25

Post #4 by dbltoe

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

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

truliebliss

New Zenner

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

Post #5 by truliebliss

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,930
Plugin Contributions:
25

Post #6 by dbltoe

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

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

truliebliss

New Zenner

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

Post #7 by truliebliss

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,930
Plugin Contributions:
25

Post #8 by dbltoe

can't see it with down for maintenance.

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

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

gjh42

Black Belt

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

Post #9 by gjh42

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

Post #10 by truliebliss

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,930
Plugin Contributions:
25

Post #11 by dbltoe

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:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

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

gjh42

Black Belt

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

Post #12 by gjh42

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

Post #13 by vfrazier

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

Vince