neilgee
3/2/2016 - 5:51 AM

Add Class to Featured Image in WordPress

Add Class to Featured Image in WordPress

<?php /<~ don't add me in

 if( has_post_thumbnail() ) {
//Add in featured image & class
 the_post_thumbnail( 'featured-podcast', array( 'class' => 'alignnone' ) ); 
 }