Hey there,

I just found out that it seems there's no alt attribute being output for the small image that's linked to the big version of an image.

As a workaround I added a global variable called "$alt" inside the function fancybox_imagefield_image_imagecache() in fancybox.module and gave it the value of the alternative attribute:

global $alt;
$alt = $item_data['alt'];

Now it's available in fancybox.theme.inc, wehere I just added
global $alt;
just before:
$image = '<img src="'. $imagecache_path .'" alt="'. check_plain($alt) .'" '. $attributes .' />';

It's dirty I guess, but works for me.

Comments

bas.hr’s picture

Status: Active » Fixed

This is a bug. Wrong variable is being used: $alt instead of $title.

Thanks for the report!

Status: Fixed » Closed (fixed)
Issue tags: -alt attribute

Automatically closed -- issue fixed for 2 weeks with no activity.