Skip to content

Instantly share code, notes, and snippets.

@braddalton
Forked from billerickson/functions.php
Last active December 23, 2015 17: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 braddalton/6671909 to your computer and use it in GitHub Desktop.
Save braddalton/6671909 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' );
img.alignnone.entry-image {
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment