Created
February 3, 2012 07:32
-
-
Save Steven-Rose/1728775 to your computer and use it in GitHub Desktop.
WP: Set theme image sizes
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
add_theme_support( 'post-thumbnails' ); | |
add_theme_support( 'page-thumbnails' ); | |
set_post_thumbnail_size( 320, 240, true ); // Normal post thumbnails | |
add_image_size( 'list-display-thumbnail', 300, 225, true ); // Permalink thumbnail size | |
add_image_size( 'main-display-thumbnail', 660, 300, true ); // Permalink thumbnail size | |
add_image_size( 'tiny-display-thumbnail', 100, 60, true ); // Permalink thumbnail size | |
add_image_size( 'training-small-thumbnail', 235, 150, true ); // Permalink thumbnail size | |
add_image_size( 'blog-small-thumbnail', 150, 150, true ); // Permalink thumbnail size for blog | |
add_image_size( 'secondary-image-clients-thumbnail', 660, 300, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment