-
-
Save jpmarchand/b458a7a9d35f7fc96a8f to your computer and use it in GitHub Desktop.
Add new image sizes in WordPress. Source: http://www.wpbeginner.com/wp-tutorials/how-to-create-additional-image-sizes-in-wordpress/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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