Reply To: Change size of page featured image

Home Forums Support Change size of page featured image Reply To: Change size of page featured image

Home Forums Support Change size of page featured image Reply To: Change size of page featured image

#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 );
}