[Plugin: NextGEN Gallery] Add class attribute when using the_post_thumbnail
-
I found that when passing array(‘class’ => “my-class”) to the_post_thumbnail doesn’t work as described in Codex when ngg is installed.
Below is a quick hack to make it work for my website. I thought this might help people.
/plugins/nextgen-gallery/lib/post-thumbnail.php Comment out line 92 $class .= isset($attr['class']) ? esc_attr($attr['class']) : ''; Add to line 130 $class .= isset($attr['class']) ? esc_attr($attr['class']) : '';
The topic ‘[Plugin: NextGEN Gallery] Add class attribute when using the_post_thumbnail’ is closed to new replies.