#1298
Christian Thibault
Participant

Hi,

I had the same problem. I used this filter in the functions.php file of my theme and it works fine now.

function modify_attachment_link( $html, $id ) {
$att_title = get_the_title($id);
$html = str_replace( ‘<a href’, ‘<a title=”‘.$att_title.'” href’, $html );
return $html;
}
add_filter( ‘wp_get_attachment_link’, ‘modify_attachment_link’, 10, 2 );