From 4aaddd81d617a4980a557a2cb642722aa3f7c6c9 Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Wed, 28 Feb 2024 10:48:41 -0800 Subject: [PATCH] feat: add large image size for larger featured images --- newspack-theme/functions.php | 1 + newspack-theme/template-parts/post/large-featured-image.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/newspack-theme/functions.php b/newspack-theme/functions.php index 4b27a56d3..49c9bead2 100755 --- a/newspack-theme/functions.php +++ b/newspack-theme/functions.php @@ -63,6 +63,7 @@ function newspack_setup() { set_post_thumbnail_size( 1568, 9999 ); add_image_size( 'newspack-featured-image', 1200, 9999 ); + add_image_size( 'newspack-featured-image-large', 2000, 9999 ); add_image_size( 'newspack-archive-image', 800, 600, true ); add_image_size( 'newspack-archive-image-large', 1200, 900, true ); add_image_size( 'newspack-footer-logo', 400, 9999 ); diff --git a/newspack-theme/template-parts/post/large-featured-image.php b/newspack-theme/template-parts/post/large-featured-image.php index a98f52b70..c87e73b63 100644 --- a/newspack-theme/template-parts/post/large-featured-image.php +++ b/newspack-theme/template-parts/post/large-featured-image.php @@ -11,7 +11,7 @@ ?> @@ -38,7 +38,7 @@