From: Anthony Talarico Date: Fri, 12 Aug 2016 18:43:02 +0000 (-0400) Subject: cut the blocks button text off at 20 character, set the image size to 300 x 408,... X-Git-Tag: v1.0.0^2~131 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=600aa406b63b1d716c156f5508cff0a6bc44dc98;p=WP-Themes%2Fpetoskeyarea.git 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 --- 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;?>

- +