I am building a custom WordPress theme.
I am using Advanced Custom Fields to have an area for the user to upload custom images.
This is what I have in my functions.php file. My images aren't taking up the full designated space, instead they are being cropped by their ratio.
function custom_theme_setup() {
add_theme_support( 'post-thumbnails' );
add_image_size( 'blog', 810, 400, true );
add_image_size( 'home-right-column-block', 305, 300, true);
}
add_action( 'after_setup_theme', 'custom_theme_setup' );
Each time I test something, I ensure I upload a fresh new image and the image I upload is way larger than the dimensions I've specified so it should work.