If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / how to make categories sidebox of my own style?

how to make categories sidebox of my own style?

Locked

Started by lina0962 on 8 Apr 2007, 8:28 PM · Views: 1,075

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Apr 2007, 8:28 PM
#1
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #1 by lina0962

Hello,

I have several product lines to be listed onto my category sidebox. I want to seperate product lines with different font color. For example, the 1st product line is "Jewerly", under this product line, I have Jade, Amber and Crystal. For each category, I have subcategory like pendant, bracelet and earring. I want the "Jewelry" in red, while categories (Jade, Amber and Crystal) and subcategories(pendant, bracelet and earring) all in black.

The 2nd product line is "Painting". Under this product line, I have wax painting, oil paintinG. For each category, I have subcategories like landscape, figure, flowers, animals, ect. I want "Painting" to be in red, while categories (Wax painting and Oil painting) and subcategories (landscape, figure, flowers, animals) all in black.

How can I achieve that? Please help!!

8 Apr 2007, 8:50 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Post #2 by gjh42

The category listing is built in /includes/templates/your_template/sideboxes/tpl_categories.php, and near the top is a section for giving specific categories their own styles.
You could use this in a brute force way and list all the top cats giving them one style and subcats another.
There are also other selection statements just below which may work more efficiently. Try them and see. The Classic template works much as you are requesting; compare its stylesheet with this file for any relevant tags.

9 Apr 2007, 12:55 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

If this is just setting Top Cats to Red and Subcats to Black ... can't you just do a view source and look at the class in use and set its color? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Apr 2007, 3:06 PM
#4
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #4 by lina0962

Ajeh, gjh42,

Thank you for your suggestions. I still don;t get it. Could you please give me more details or show me the codes? That will make it much easier for me than figuring it out blindly by myself. :blush: