The top categories need to be "special" as described in the comments in tpl_categories.php:
PHP Code:
switch(true) {
// to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
// uncomment the select below and set the cPath=3 to the cPath= your_categories_id
// many variations of this can be done
// case ($box_categories_array[$i]['path'] == 'cPath=3'):
// $new_style = 'category-holiday';
// break;
case ($box_categories_array[$i]['top'] == 'true'):
Like this:
PHP Code:
// many variations of this can be done
case ($box_categories_array[$i]['path'] == 'cPath=8'): //Moski cevlji
$new_style = 'category-moski';
break;
case ($box_categories_array[$i]['path'] == 'cPath=10'): //Otroski cevlji
$new_style = 'category-otroski';
break;
case ($box_categories_array[$i]['top'] == 'true'):
Add to your stylesheet
Code:
}/*example for custom individual category styling*/
#categories li.category-moski a {
background-image: url(../images/moski_bg.gif);
background-repeat: none;
padding: 2px 0 2px 23px;
}
#categories li.category-otroski a {
background-image: url(../images/moski_bg.gif);
background-repeat: none;
padding: 2px 0 2px 23px;
/*example for custom category group styling*/
ul#catGroup8 {
background-color: #bbeeff;
}
Adjust and add properties as required.
You will want to change top categories to list-style: none; and set the desired list-style image for subcategories.
Bookmarks