Reply To: Avoid using original image for featured header image?

Home Forums Support Avoid using original image for featured header image? Reply To: Avoid using original image for featured header image?

Home Forums Support Avoid using original image for featured header image? Reply To: Avoid using original image for featured header image?

#203554
Tom
Lead Developer
Lead Developer

Hi there,

If you’re using the Featured image setting, WordPress should point to multiple images using srcset: https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/

By default, it’s set to show the “full” image in GP, but you can change this with a filter:

add_filter( 'generate_page_header_default_size','generate_change_page_header_size' );
function generate_change_page_header_size()
{
    return 'full';
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

Simply change full to another size like large, and set that size in “Settings > Media”.

Hope this helps 🙂