Earnest-Enterprises:
I have IH2 installed and working fine under 139d and Zen Lightbox.
Is there any way to remove the "alt" image product description that pops up when I mouse over an image? Or is this browser-dependent?
While it does eventually go away after several seconds it blocks the product decscription on the image and is a distraction.
http://www.earnest-enterprises.com
I've scoured the forum for an answer to this but don't find anything. Thanks for any thoughts on this....
Ok, this is what i did many years ago to fix this issue, but it does affect accessibility for screen readers, a javascript option is better
This is the quick and dirty fix, and effects one core file and is offered with no guarantees, this also isn't really an image handler problem, it is a generic zencart function to allow for accessibility
Find your \includes\functions\html_output.php file make a backup of the file
go to around line 122 and you will see the following code, this is where the title tag and attribute tag are produced
// 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="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
change it to this the double slashes in front of the lines make the php parser browser ignore those line, i personally leave them in as it makes problems easier to find, it also helps if you need to merge the file when adding a mod that effects it
// 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="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
$image = '<img src="' . zen_output_string($src) . '"';
// if (zen_not_null($alt)) {
// $image .= ' title=" ' . zen_output_string($alt) . ' "';
// }
I have tested this and it does work, but its up to you to edit the files.
no warranties no guarantees etc