Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created June 28, 2013 17:14
Show Gist options
  • Save WebEndevSnippets/5886350 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/5886350 to your computer and use it in GitHub Desktop.
Genesis: Change Featured Image Attributes
remove_filter( 'genesis_attr_entry-image', 'genesis_attributes_entry_image' );
add_filter( 'genesis_attr_entry-image', 'webendev_attributes_entry_image' );
/**
* Change Featured Image (Alignment)
*/
function webendev_attributes_entry_image( $attributes ) {
$attributes['class' ] = 'alignnone post-image entry-image';
$attributes['itemprop'] = 'image';
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment