Created
March 12, 2014 11:42
-
-
Save srikat/9505257 to your computer and use it in GitHub Desktop.
Aligning Featured Image to right in Genesis Content Archives
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
/** | |
* Change Image Alignment of Featured Image From Left to Right | |
* | |
*/ | |
function sk_change_image_alignment( $attributes ) { | |
$attributes['class'] = str_replace( 'alignleft', 'alignright', $attributes['class'] ); | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_entry-image', 'sk_change_image_alignment' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment