Home › Forums › Support › Change size of page featured image › Reply To: Change size of page featured image
April 10, 2015 at 9:38 am
#97282
Tom
Lead Developer
Lead Developer
Interesting – can I see an example of the function you’re trying out?
If you’re wanting to hard crop the image, you’ll have to add “true” after the sizes, like this:
add_filter( 'generate_page_header_default_size', 'generate_custom_default_page_header_size' );
function generate_custom_default_page_header_size()
{
$width = 1800;
$height = 400;
return array( $width, $height, true );
}