resze Posted April 14, 2008 Posted April 14, 2008 Hello, I've done images as a replacement for the text links for the subcategories. The problem is, I cant get rid of the text. To help you vision my problem I've taken a screenshot: http://data.fuskbugg.se/skalman01/kategoriproblem.jpg As you can see, i've marked the text links with a circle, just to make sure you fully understand that it's those textlinks I want to get rid of, and only use images instead. Thanks in advance. Best regards, Marcus
Guest Posted April 14, 2008 Posted April 14, 2008 I'm assuming you added the images through the admin when you created your category and the text links you want removed are on your index page. BACKUP FIRST In catalog/index.php find around line 115 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"; Change to 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) . '</a></td>' . "\n";
burt Posted April 14, 2008 Posted April 14, 2008 You maybe have the ALT attribute in the wrong place for those images.
resze Posted April 14, 2008 Author Posted April 14, 2008 Thank you so much Bktrain, it worked perfectly! ;)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.