Guest Posted August 26, 2005 Share Posted August 26, 2005 Hi, I am trying to eliminate the images displayed in the subcategories section. An example is here: http://www.dbsupplements.com/catalog/index.php/cPath/38 I would prefer to have the subcategories displayed as larger text without any image. If someone can help me accomplish this I'd greatly appreciate it. Thanks Link to comment Share on other sites More sharing options...
Wendy James Posted August 26, 2005 Share Posted August 26, 2005 I believe if you just go into your admin area and click on configuration then on images and set require images to false the images should dissapear. If not let me know and I will tell you the code to remove to remove the images. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Thanks for the help Wendy, but unfortunately that does not work. Can you please tell me the code I need to adjust? As well, if you know the code, do you also know how I can increase the font size of that subcategories text? Thanks Link to comment Share on other sites More sharing options...
Wendy James Posted August 27, 2005 Share Posted August 27, 2005 Thanks for the help Wendy, but unfortunately that does not work. Can you please tell me the code I need to adjust? As well, if you know the code, do you also know how I can increase the font size of that subcategories text? Thanks <{POST_SNAPBACK}> I believe if you open your index.php and look for $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } and change it to $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } It will remove the subcategory images listed at the top of the page above the "new products for" box. Let me know if that doesn't work. :) Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Wendy James Posted August 27, 2005 Share Posted August 27, 2005 Oh, and you can change the font size by making a class in youe stylesheet or using one you already have and adding it to the <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"> like <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="newstyle"> Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2005 Share Posted August 27, 2005 Thanks a lot Wendy your coding worked to eliminate the subcategory images. I hate to sound like an idiot, but can you give me a little more instruction as to how to change the font size? I am not 100% sure how to do that. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.