fabriccut100 Posted February 4, 2009 Share Posted February 4, 2009 This may sound stupid but how can I add an alt tag to this image <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> Thank you for your time and consideration Link to comment Share on other sites More sharing options...
germ Posted February 5, 2009 Share Posted February 5, 2009 The code for that is in /catalog/includes/functions/html_output.php //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height); } If you wanted it to always be the same text the code would be something like this: //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, 'PUT YOUR ALT TEXT HERE', $width, $height); } If you want varaible alt text we'd need to do something else. As always, backup anything before making any edits. You broke it - you bought it... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.