Changing Post Thumbnail Sizes
Vantage adds five image sizes. This page lists them and shows two ways to change them.
Image Sizes Added by Vantage
post-thumbnail
720 x 380, cropped. Used for the featured image of a post or page when the page shows a sidebar. That means the Page Layout is Default or Full Width, With Sidebar, and the Sidebar widget area has widgets.
vantage-thumbnail-no-sidebar
1080 x 380, cropped. Used for the featured image in all other cases, such as a page with no sidebar.
vantage-slide
960 x 480, cropped. Used by the Slider loop template.
vantage-carousel
272 x 182, cropped. Used by the Carousel Slider loop template.
vantage-grid-loop
436 x 272, cropped. Used by the Grid loop template.
You choose a loop template with Blog Archive Layout in Blog, or in the Post Loop Widget of Page Builder.
Change the Sizes With a Plugin
The Simple Image Sizes plugin lets you change the sizes.
- Install and activate the plugin.
- Go to SettingsMedia and find the size that you want to change.
- Change Maximum width, Maximum height or Cropping, and click Update for that size.
- Scroll down to the list of sizes to rebuild. Click the Size name box to clear all names, and then tick the sizes that you changed.
- Click Regenerate Thumbnails.
Change the Sizes With Code
Add this code to the functions.php file of a child theme. Vantage sets the sizes at priority 10, so the code must run later.
function vantage_child_image_sizes() {
set_post_thumbnail_size( 900, 450, true );
add_image_size( 'vantage-thumbnail-no-sidebar', 1200, 450, true );
}
add_action( 'after_setup_theme', 'vantage_child_image_sizes', 20 );Change the numbers to suit your site. Use set_post_thumbnail_size() for post-thumbnail and add_image_size() for the other sizes.
Regenerate Your Images
WordPress makes the sizes when you upload an image. After you change a size, the images that you uploaded before keep the old sizes. Regenerate them with the plugin above, or with the WP-CLI command wp media regenerate.