Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created January 29, 2015 20:45
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 ericakfranz/98770c7040fd569fcdd0 to your computer and use it in GitHub Desktop.
Save ericakfranz/98770c7040fd569fcdd0 to your computer and use it in GitHub Desktop.
Filter Soliloquy Crop Defaults
function soliloquy_crop_change_args( $args ) {
$args = array(
'position' => 'b', // crop position, b = bottom, c = center, t = top, default is center
'width' => '1200', // cropped image width
'height' => '300', // cropped image height
'quality' => 100, // cropped image quality
'retina' => true // make allowance for retina (produces cropped images at twice the dimension size set), default is false
);
return $args;
}
add_filter( 'soliloquy_crop_image_args', 'soliloquy_crop_change_args', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment