Created
June 28, 2013 17:14
-
-
Save WebEndevSnippets/5886350 to your computer and use it in GitHub Desktop.
Genesis: Change Featured Image Attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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