From 6113ce0c7f0ee5adae18e24c4ce5094ce3a6581f Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 28 Oct 2019 10:33:26 -0400 Subject: [PATCH] Add a custom image size for the logo --- themes/wporg-5ftf/functions.php | 2 ++ themes/wporg-5ftf/single-5ftf_pledge.php | 10 +++++++++- .../wporg-5ftf/template-parts/content-5ftf_pledge.php | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/themes/wporg-5ftf/functions.php b/themes/wporg-5ftf/functions.php index 5dfbc50..2e8bcd3 100644 --- a/themes/wporg-5ftf/functions.php +++ b/themes/wporg-5ftf/functions.php @@ -37,7 +37,9 @@ function setup() { add_theme_support( 'wp-block-styles' ); add_theme_support( 'editor-styles' ); + add_theme_support( 'post-thumbnails' ); + add_image_size( 'pledge-logo', 660, 200 ); add_editor_style( 'css/style-editor.css' ); diff --git a/themes/wporg-5ftf/single-5ftf_pledge.php b/themes/wporg-5ftf/single-5ftf_pledge.php index 548e7ef..97b70e2 100644 --- a/themes/wporg-5ftf/single-5ftf_pledge.php +++ b/themes/wporg-5ftf/single-5ftf_pledge.php @@ -33,7 +33,15 @@ get_header(); ?> ?> - +
+ + + +
+ +
diff --git a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php index 60daf12..c135532 100644 --- a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php +++ b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php @@ -32,12 +32,12 @@ $contributor_title = sprintf(
-
+