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

#96740
Tom
Lead Developer
Lead Developer

Good question! Are you using GP Premium? If so, it’s a little more complicated.

I just added a new filter to the Page Header add-on that will allow you to add the simple function below to give it a custom size:

add_filter( 'generate_page_header_default_size', 'generate_custom_default_page_header_size' );
function generate_custom_default_page_header_size()
{
      $width = 1000;
      // 9999 will generate a proportional height to the width, set a reasonable number to crop the image
      $height = 9999; 
      return array( $width, $height );
}

Note: The above filter won’t work until GP Premium 1.2/Page Header 1.3.

Let me know if you’re using GP Premium or Page Header, if you want to email me at support@generatepress.com I can send you the updated files so the above works.

Thanks!