From 600aa406b63b1d716c156f5508cff0a6bc44dc98 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 12 Aug 2016 14:43:02 -0400 Subject: [PATCH] cut the blocks button text off at 20 character, set the image size to 300 x 408, which is what the sample image sizes are --- functions.php | 3 +++ parts/glm-blocks.php | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index caeb9a0..fffb3b0 100644 --- a/functions.php +++ b/functions.php @@ -237,7 +237,10 @@ function mytheme_init() { } add_action('init', 'mytheme_init', 10); + add_image_size('glm_block', 200,100,true); +add_image_size('glm_block_frontpage', 300,408, true); + function wpse_setup_theme() { add_image_size('glm-block-image', 290, 190,true); } diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php index d86b425..f07e59e 100644 --- a/parts/glm-blocks.php +++ b/parts/glm-blocks.php @@ -1,13 +1,15 @@ - +
url):?> + ID), 'glm_block_frontpage'); ?> externalUrl){echo ' target="_blank"';}?>> - thumbnail;?> + + url):?> @@ -19,7 +21,7 @@

post_content . $block->post_excerpt;?>

- +
-- 2.17.1