This is the part you will edit to get the headings:
PHP Code:
// categories dressing - add (divider and) heading above a cat
switch ($current_path) {
case '23': //replace number with your desired cPath
$content .= '<hr class="catBoxDivider" />' . "\n"; // to add divider uncomment this line
$content .= '<span class="catBoxPearls">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') . '</span>':'Heading 1</span>' . $disp_block_head) . "\n";
break;
}
Duplicate the case...break section for each heading you want.
Navigate to the category that you want to appear just below the heading, and see its "&cPath=xx" in the address bar at the top of your window. Put the number part of that in the case 'xx': statement.
Replace Heading 1 with your heading text - leave the quote ' in front of it.
If you are using an image file for the heading, name it catheadxx.gif and save it in /includes/templates/your_template/images/.
PHP Code:
// categories dressing - add (divider and) heading above a cat
switch ($current_path) {
case '23': //replace number with your desired cPath
$content .= '<hr class="catBoxDivider" />' . "\n"; // to add divider uncomment this line
$content .= '<span class="catBoxPearls">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') . '</span>':'Cat 23 Heading</span>' . $disp_block_head) . "\n";
break;
case '69': //replace number with your desired cPath
$content .= '<hr class="catBoxDivider" />' . "\n"; // to add divider uncomment this line
$content .= '<span class="catBoxPearls">' . (file_exists(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES . 'cathead' . $current_path . '.gif') . '</span>':'Cat 69 Heading</span>' . $disp_block_head) . "\n";
break;
}
Bookmarks