Created
June 2, 2014 02:14
-
-
Save SusanRamsey/5b5b3ca57c29ab108151 to your computer and use it in GitHub Desktop.
Code to Center Align the Featured image in the Genesis child themes
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 Image Alignment from Featured Image | |
* | |
*/ | |
function be_remove_image_alignment( $attributes ) { | |
$attributes['class'] = str_replace( 'alignleft', 'aligncenter', $attributes['class'] ); | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_entry-image', 'be_remove_image_alignment' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment