Okay, I tried the same trick with another site, but it didn't work. Can anyone please help me figure out what I did wrong?
I inserted this block of code (identical to the first except the cPaths and urls are changed):
PHP Code:
if ($box_categories_array[$i]['path'] == 'cPath=16') {
$content .= '<div class="betterCategories"><a class="' . $new_style . '" href="http://www.book-oasis.com\">';
} elseif ($box_categories_array[$i]['path'] == 'cPath=17') {
$content .= '<div class="betterCategories"><a class="' . $new_style . '" href="http://www.carnal-pleasures.com\zencart\">';
just above:
PHP Code:
} else {
$content .= '<div class="betterCategories"><a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
if ($box_categories_array[$i]['current']) {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent">';
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'down', $spacer);
$content .= '</span>';
} else {
$content .= '<span class="category-subs-selected">';
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'nosub', $spacer);
$content .= '</span>';
}
} else {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'right', $spacer); }
else {
$content .= cat_with_pointer($box_categories_array[$i]['name'], 'nosub', $spacer); }
}
Am I putting it in the wrong place?
Many thanks, in advance, for your assistance!!
Bookmarks