Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created August 13, 2013 22:41
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billerickson/6226416 to your computer and use it in GitHub Desktop.
<?php
/**
* Remove Image Alignment from Featured Image
*
*/
function be_remove_image_alignment( $attributes ) {
$attributes['class'] = str_replace( 'alignleft', 'alignnone', $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