Adding Image class to Genesis Featured Widget Amplified plugin
-
Hi there,
I posted a message on Nick the Geeks website (and StudioPress) but haven’t heard back. I would like to add a class to the image that is used by the Genesis Featured Widget Amplified plugin
I’m pretty sure it happens in the “widget.php” file with this code:
$image = !empty( $instance['show_image'] ) ? genesis_get_image( array( 'format' => 'html', 'size' => $instance['image_size'], 'attr' => array( 'class' => $align ) ) ) : ''; $image = $instance['link_image'] == 1 ? sprintf( '<a href="%s" title="%s" rel="nofollow">%s</a>', $link, the_title_attribute( 'echo=0' ), $align, $image ) : $image;
I’m a newbie with php so not too sure how this works but adding class=”%s extra_class”> stops the images from showing and array( ‘class’ => $align, ‘extra_class’ ) doesn’t do anything
Any ideas on how I can add an extra class here?
Thanks,
John
https://www.ads-software.com/extend/plugins/genesis-featured-widget-amplified/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding Image class to Genesis Featured Widget Amplified plugin’ is closed to new replies.