Skip to content

Instantly share code, notes, and snippets.

@pattyok
Created September 22, 2017 16:46
Show Gist options
  • Save pattyok/d72643fbc512d1a5b316caf5e74ed0c5 to your computer and use it in GitHub Desktop.
Save pattyok/d72643fbc512d1a5b316caf5e74ed0c5 to your computer and use it in GitHub Desktop.
<?php
//Add these things to setup.php
//Add image sizes
add_image_size( 'facebook', 1230, 630, array('center', 'center') );
add_image_size( 'x-large', 1800, 1200, array('center', 'center') );
add_image_size( 'med-large', 600, 400, array('center', 'center') );
update_option( 'medium_size_w', 400 );
update_option( 'medium_size_h', 400 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment