From c6bcc2e9791c4421b04f723ed6cf19bf9bd2c875 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 30 Mar 2015 12:12:17 -0400 Subject: [PATCH] Create new thumbnail size for blocks make them 269 x 190 --- front-page.php | 2 +- functions.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/front-page.php b/front-page.php index 30ca0f7..c59800d 100644 --- a/front-page.php +++ b/front-page.php @@ -27,7 +27,7 @@ thumbnail; - echo get_the_post_thumbnail($block->ID, array(269, 190), array('class' => 'aligncenter')); + echo get_the_post_thumbnail($block->ID, 'block-thumbnail', array('class' => 'aligncenter')); ?> url):?> diff --git a/functions.php b/functions.php index 9223856..3605a4a 100644 --- a/functions.php +++ b/functions.php @@ -112,6 +112,10 @@ function glm_offcanvas_menu() add_theme_support('post-thumbnails'); set_post_thumbnail_size(120, 100, true); +function glm_theme_image_setup() +{ + add_image_size('block-thumbnail', 269, 190, true); +} /** * glm_site_scripts * @@ -140,7 +144,7 @@ function glm_site_scripts() function GLM_get_header() { echo '