View Single Post
Old 05-18-2015, 01:37 AM  
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
1. i already have theme which i've spend some time tweaking it.
2. yday i've spend whole day trying to add to ahref tag class i wanted and i finally did it.
3. now i want thumbnails to be displayed in form of justified/grid like in example above.

now if you could help me instead of telling me obvious that there's lots of themes like this i would be very happy ;)

so yday i managed to add class="mystyle" to ahref tag in gallery like this one:
[gallery link="file" ids="2269,2268,2267,2266,2265,2264"]
i 've achieved it by adding line at the end of functions.php:
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);

but if i'll install plugin from this example http://bdwm.be/rgg/demo/ my style stops working.
do you have any idea where should i add my style this time?
__________________
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