From 88c26e8012dd454302862115b2602c8d8e60b95a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 6 Dec 2018 15:31:01 -0500 Subject: [PATCH] adding size for front page block images --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index b70cec2..b088f60 100644 --- a/functions.php +++ b/functions.php @@ -305,7 +305,7 @@ add_filter( 'rest_endpoints', function( $endpoints ){ $count = 0; foreach ($blocks as $block): $post_image_id = get_post_thumbnail_id($block->ID); - $thumbnail = wp_get_attachment_image_src( $post_image_id, 'landing_page')[0]; + $thumbnail = wp_get_attachment_image_src( $post_image_id, 'large')[0]; $out .= "
"; if($block->url): $out .= 'externalUrl)? ' target="_blank"':'').'>'; -- 2.17.1