From d76717a5d9c072de1eae20abc03d20aaa5a17288 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 3 Mar 2016 10:41:12 -0500 Subject: [PATCH] Add image size for blocks and remove old widget area Side widget area not used so removed. Adding block image size for the blocks --- root/functions.php | 15 +++++---------- root/parts/glm-blocks.php | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/root/functions.php b/root/functions.php index 1c2e5b9..d3c7fd5 100644 --- a/root/functions.php +++ b/root/functions.php @@ -11,16 +11,6 @@ if (!function_exists('glm_quicksite_widget_init')) { function glm_quicksite_widget_init() { - register_sidebar(array( - 'name' => __('Right Sidebar'), - 'id' => 'sidebar-r', - 'description' => __('Appears in Right Sidebar') - )); - //register_sidebar(array( - // 'name' => __('Footer'), - // 'id' => 'sidebar-f', - // 'description' => __('Appears in Footer Area') - //)); register_sidebar(array( 'name' => __('Slideshow'), 'id' => 'slideshow', @@ -122,6 +112,11 @@ function mytheme_init() { add_action('init', 'mytheme_init', 10); +function wpse_setup_theme() { + add_image_size('glm-block-image', 290, 190,true); +} + +add_action( 'after_setup_theme', 'wpse_setup_theme' ); function mytheme_search_loop() { while ( have_posts() ) : the_post(); ?> diff --git a/root/parts/glm-blocks.php b/root/parts/glm-blocks.php index e8b8594..8f92ed5 100644 --- a/root/parts/glm-blocks.php +++ b/root/parts/glm-blocks.php @@ -6,7 +6,7 @@ url):?> externalUrl){echo ' target="_blank"';}?>> - thumbnail;?> + ID, 'glm-block-image');?> url):?> -- 2.17.1