Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Created November 4, 2015 20:05
Show Gist options
  • Save jpmarchand/b458a7a9d35f7fc96a8f to your computer and use it in GitHub Desktop.
Save jpmarchand/b458a7a9d35f7fc96a8f to your computer and use it in GitHub Desktop.
<?php
add_image_size('sidebar-thumb', 120, 120, true); // Hard Crop Mode
add_image_size('homepage-thumb', 220, 180); // Soft Crop Mode
add_image_size('singlepost-thumb', 590, 9999); // Unlimited Height Mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment