Good thing I read the other thread, too. Otherwise I wouldn't have known what you're talking about
I know, the looks might not be appealing, but the alt attribute is a functional attribute and should be present in every image, so people, who for whatever reason are not able to view an image (or have it displayed), get the alt attribute instead. Popular browsers interpret this as an additional popup-hint. Have that in mind when you strip it from your site.
If you nevertheless want to remove the attribute, there are several ways to achieve this:
- keep your mouse moving ok, not really a solution...
- edit the zen_image() calls in your template to not pass the alt-attribute (2nd parameter)
- edit includes/functions/extra_functions/functions_bmz_image_handler.php
- edit includes/functions/html_output.php
I'd prefer editing the template files and passing an empty string instead of a variable to the zen_image() call. This way you have complete control over where the alt tag is should be missing and where not (medium images for example).
You could also edit line 78 of includes/functions/extra_functions/functions_bmz_image_handler.php (line number may be different for you) to pass an empty string for alt:
Code:
return array($src, '', intval($width), intval($height), $parameters);
This way you don't have to change a lot of zen_image() calls, and you're done with one simple code change. However, the alt tag will be missing in each and every image.
I wouldn't suggest editing the includes/functions/html_output.php file since it's a core file and more likely to change in new versions of Zen-Cart and Image Handler than functions_bmz_image_handler.php.
Cheers,
Tim
Bookmarks