New Zenner
- Join Date:
- Jul 2005
- Posts:
- 85
- Plugin Contributions:
- 0
Targeting and Removing Subcategory text
Hello all,
I’d like to target certain subcategories and remove the titles below the subcategory images. After searching through the forum, I did find a suggestion as how to remove the subcategory title/text. Edit includes/modules/category_row.php and change
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
to
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br /></a>');
However, how can I implement this while targeting specific subcategories within a category? For example, Category A has Subcategories 1, 2 and 3 with titles and images. But Category A, Subcategory 1, Subcategory a, b and c has just images.
Can I accomplish this through my stylesheet?...or would I have to modify includes/modules/category_row.php further?