JiveDig
10/29/2013 - 2:32 AM

Remove image alignment CSS from featured image

Remove image alignment CSS from featured image

// Remove Image Alignment from Featured Image
// @link http://www.billerickson.net/genesis-featured-image-alignment/
add_filter( 'genesis_attr_entry-image', 'be_remove_image_alignment' );
function be_remove_image_alignment( $attributes ) {
  $attributes['class'] = str_replace( 'alignleft', 'alignnone', $attributes['class'] );
	return $attributes;
}