kei Posted October 11, 2005 Share Posted October 11, 2005 Hello all! I noticed that the image tags use the product name for the "alt" & "title" and was wondering if there was a way you can change this? I would like to enter my own descriptions for the images. I was looking through the contributions but could not find anything that might be of help. If someone can direct me to where I can find this information I would greatly appreciate it! Thanks in advance! Kei Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 12, 2005 Share Posted October 12, 2005 You just need to change the code that builds the link. For example, in the product_info.php file you will find <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> Change it to <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], 'PUT ALT TEXT HERE', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.