Hi All, I searched around a bit quite could not find how to make my category icon on my home page a different size to the icon on the sub categories.

So i thought of this and it seems to work for me...

Firstly open up includes/modules/category_row.php

find the line:
Code:
$title = '';
add above it:
Code:
if ($this_is_home_page) {
then just above the last closing tag '?>', place this:
Code:
} else { // ***  ELSE IF ITS NOT HOME PAGE
$title = '';
$num_categories = $categories->RecordCount();
$row = 0;
$col = 0;
$list_box_contents = '';
if ($num_categories > 0) {
  if ($num_categories < MAX_DISPLAY_CATEGORIES_PER_ROW || MAX_DISPLAY_CATEGORIES_PER_ROW == 0) {
    $col_width = floor(100/$num_categories);
  } else {
    $col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW);
  }
  while (!$categories->EOF) {
    if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';
    $cPath_new = zen_get_path($categories->fields['categories_id']);
    // strip out 0_ from top level cats
    $cPath_new = str_replace('=0_', '=', $cPath_new);
    //    $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);
    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents subCatImage"' . ' ' . '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']) . '<br />' . $categories->fields['categories_name'] . '</a>');
    $col ++;
    if ($col > (MAX_DISPLAY_CATEGORIES_PER_ROW -1)) {
      $col = 0;
      $row ++;
    }
    $categories->MoveNext();
  }
}
}
Open up your stylesheet and at the end place this:
Code:
.subCatImage { }
.subCatImage img { width: 360px; Height:250px; }
This is what will control your subcategories icon image's styling. Your category icon sizes on your home page will be controlled by your settings in admin as normal.

Hope this helps someone else

Jay