Created
April 28, 2014 09:28
-
-
Save georgeolaru/11366664 to your computer and use it in GitHub Desktop.
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
/* | |
* Custom Thumbnails | |
*/ | |
function wpgrade_custom_thumbnails (){ | |
// Add theme support for Featured Images | |
add_theme_support( 'post-thumbnails' ); | |
add_image_size('slider-big', 1365, 780, true); | |
// Hero Post, Category Slider, Mega Menu Slider | |
add_image_size('post-big', 910, 585, true); | |
// Post Cards, Latest Posts Widget, | |
add_image_size('post-medium', 1005, 768, true); | |
// Hero Posts Small, Mega Menu Posts, Latest Posts Widget | |
add_image_size('post-small', 812, 628, true); | |
add_image_size('post-tiny', 144, 108, true); | |
// Latest Posts Grid | |
add_image_size('blog-medium', 1005); | |
// Featured Image | |
add_image_size('blog-big', 1365); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment