This is kinda dirty, but I can find a better hook:



function add_content_hash( $link ) { $link = str_replace("' title='", "#content' title='", $link); return $link;
}
add_filter( 'wp_get_attachment_link', 'add_content_hash' );


More Solution