robburne Posted February 14, 2007 Share Posted February 14, 2007 Hi, Does anyone know how to change the mouseover text which appears when the user hovers over an image on the product image page? I'd like to remove it altogether. Thanks, Rob. Link to comment Share on other sites More sharing options...
jonquil Posted February 14, 2007 Share Posted February 14, 2007 Hi, It's called "alt text" and you should not defeat it for a variety of reasons :) http://www.w3.org/TR/html401/struct/objects.html#h-13.8 "Several non-textual elements (IMG, AREA, APPLET, and INPUT) let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc." jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Velveeta Posted February 14, 2007 Share Posted February 14, 2007 Hi, It's called "alt text" and you should not defeat it for a variety of reasons :) http://www.w3.org/TR/html401/struct/objects.html#h-13.8 "Several non-textual elements (IMG, AREA, APPLET, and INPUT) let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc." jon In case you decide to move forward with this anyway, and there are additional reasons not to, such as SEO, I'm sure the image alt text is weighted at least some amount in your ranking score, the easiest way to do this site-wide would be to edit the tep_image function in includes/functions/html_output.php and simply comment out the part where it builds the alt text into the img tag... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
robburne Posted February 15, 2007 Author Share Posted February 15, 2007 Many thanks for the reply..... I tried to edit the html_output.php file but with no luck I am afriad. I looked for the tep_image function and changed the folllowing: // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; Chnaged to: $image = '<img src="' . tep_output_string($src) . '" border="0" alt="MY TEXT"'; A customer is aksing for this so I am just going along with it although of course yes probably not the best for SEO although a stock number unless engineered to contain keywords is going to do very little for SEO! Any ideas what I am doing wrong? Thanks, Rob. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.