Zen Cart Logo
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 / Having more than 1 "stand-out" category

Having more than 1 "stand-out" category

Locked

Started by shirster on 8 Jul 2008, 3:44 AM · Views: 1,014

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Jul 2008, 3:44 AM
#1
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Post #1 by shirster

Hi guys and girls,

I've made 1 of my categories stand out following the instructions in tpl_categories.php, my question is, is it possible to have more than 1 category that stands out using this method?

Thanks in advance !

Shirley

8 Jul 2008, 4:06 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Post #2 by rstevenson

Looks to me like you would just copy and paste another set of that code that you uncommented in the tpl_categories.php file. That is, where you uncommented the ```php
case ($box_categories_array[$i]['path'] == 'cPath=3'):
$new_style = 'category-holiday';
break;


Rob

Breakfast: the most important donut of the day.

8 Jul 2008, 5:13 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Post #3 by gjh42

And you can change

$new_style = 'category-holiday';

to

$new_style = 'category-halloween';

or anything you want in each of those cases, if you want them to look different from each other.
Just style each class in your stylesheet:

a.category-holiday {}
a.category-halloween {}
a.category-easter {}
...

25 Jul 2008, 2:12 AM
#4
shirster avatar

shirster

Zen Follower

Join Date:
Sep 2005
Location:
Hong Kong
Posts:
301
Plugin Contributions:
0

Post #4 by shirster

Thanks guys, I actually tried that before posting, but it turns out that I made a typo in the stylesheet hence it didn't work (-_-')

Thanks for your help ! (^v^)