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
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
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 thelines, you copy that and paste it in one or more times, each time making sure you change the cPath=3 part to reflect your category's id number. As far as I know you can make as many case statements as you needed this way.PHP Code:case ($box_categories_array[$i]['path'] == 'cPath=3'):
$new_style = 'category-holiday';
break;
Rob
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 {}
...
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^)