Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Targeting and Removing Subcategory text

Targeting and Removing Subcategory text

Locked

Views: 1,217

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Sep 2008, 4:40 PM
#1
creative avatar

creative

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?

8 Sep 2008, 4:51 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,606
Plugin Contributions:
0

Re: Targeting and Removing Subcategory text

Wouldn't you have a much more consistent look if you didn't have text for any of the categories or sub-cats?