View Single Post
Old 05-17-2015, 04:10 PM  
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
thanks for the tip.
this code added to functions.php solved my problem:

function my_get_attachment_link($html) { $postid = get_the_ID(); $html = str_replace('<a', '<a class="mystyle"', $html); return $html; } add_filter('wp_get_attachment_link', 'my_get_attachment_link', 10, 1);
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote