Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Color change for product listing

Color change for product listing

Locked

Views: 1,405

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Feb 2008, 12:42 PM
#1
coolglobal avatar

coolglobal

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Color change for product listing

Hey,

In the Categorie Pages:

I want Product Listings to have the price in blue, and the product name in black.

How do I do this? It seems a little harder than I thought.

Just CSS or alter a template?

15 Feb 2008, 12:51 PM
#2
coolglobal avatar

coolglobal

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Re: Color change for product listing

Solved this one, was a bit tricky though.

What I did was altered:

includes/modules/magic/product_listing.php
line 88 & 100 add style color to the h3 x 2

can modify deeper by changing the h3's to div's.

Combine this with stylesheet changes and the product listing colors are under your control.

There you go.

15 Feb 2008, 12:58 PM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Color change for product listing

Might it not be easier to add following to stylesheet
plus additions for your requirements re text i.e

.productListing-odd {
    background-color: #FFFFFF;
 }
.productListing-even {
    background-color: #EFEFEF;
 }
18 Feb 2008, 12:11 PM
#4
coolglobal avatar

coolglobal

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Re: Color change for product listing

Hmmm, something to think about!

I had a really good swipe at it Misty. No matter what I did to the stylesheet didn't want me to control the color of the price and the product name individually. I suspect that is due to the product name being a link to the product info page, and the product name is colored as a link, if you see what I mean. It has a link color. If this is due to my previous stylesheet changes I'm not sure. It's a little hacked now so I wasn't able to test your stylesheet change. Thanks for the thought though!