Hello @David,
Yes, I still have the following code in my functions.php. Shall I remove it?
/** Remove the Featured Image Background from the header element **/
// https://generatepress.com/forums/topic/how-to-fix-largest-contentful-paint-element-for-page-hero/page/2/#post-1819584
add_action( 'wp_head', function() {
if( is_single() ) {
$featured_img_url = get_the_post_thumbnail_url(get_the_ID(),'medium_large');
echo '<link rel="preload" as="image" href="'.$featured_img_url.'"/>';
echo '<style>.page-hero { background-image: url('.$featured_img_url .');}</style>';
}
},0);
Thank You!