Last active
September 16, 2017 00:07
-
-
Save pablocattaneo/37b4a2991d34e4803068 to your computer and use it in GitHub Desktop.
Add custom thubmnail image size. If the image size is bigger than size define in the custom size it will be cut and center.
This file contains hidden or 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( 'custom-size', 220, 180, true ); // 220 pixels wide by 180 pixels tall, hard crop mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment