A quick dirty trick:
Create the following new file: /includes/templates/YOUR_TEMPLATE_FOLDER/jscript/jscript_categories_children_css.php
containing:
Code:
<?php
/**
* custom category handling for a parent and all its children ... works for any c_XX_XX_children.css where XX_XX is any parent category
*/
$tmp_cats = explode('_', $cPath);
$value = '';
foreach($tmp_cats as $val) {
$value .= $val;
$perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . '/c_' . $value . '_children.css';
if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n";
$perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . '/' . $_SESSION['language'] . '_c_' . $value . '_children.css';
if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n";
$value .= '_';
}
Then in your css folder put your new css file as "c_3_children.css" and it'll apply to all children below cPath=3
Similarly, if you want to only affect the children of cPath=3_175 then make the filename be c_3_175_children.css instead.
THIS CODE IS NOW INCLUDED IN v1.5.1