Skip to content

Instantly share code, notes, and snippets.

@deckerweb
Forked from srikat/functions.php
Created March 12, 2014 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deckerweb/9508459 to your computer and use it in GitHub Desktop.
Save deckerweb/9508459 to your computer and use it in GitHub Desktop.
/**
* 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