Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP: Set theme image sizes
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