s_mart:
Hi Clyde,
I'm trying to make it so that only the category images display on the main page - not the image and category name. My category image is a logo that contains the category name, so having both listed is redundant.
I've searched some other posts in the support forum, but I have not had any success in any of the suggestions posted. Maybe it is something template specific that needs to be done?
I want to keep the subcategories showing the category name and image - its just the top level categories on the main page I want to only display the image for. Any assistance would be greatly appreciated - I really like your Cold Steel template!
Thanks in advance.
Its not template specific.
You'll need to edit includes/modules/category_row.php
look at line 39 in that file the highlighted portion is what need to be edited/deleted
$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>');
make sure to save the edit file to
includes/modules/cold_steel/category_row.php
upload the edited file to your server.
NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.