From aeab966e89b49b8818ad1ec9fa86294f294dcd0c Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 16 Oct 2021 16:07:44 +0000 Subject: [PATCH 1/2] Add Support for Post Thumbnails / Featured Images The theme currently uses Post Thumbnails in templates, but without explicitly declaring support for it, it is impossible to edit them or add new ones. --- functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.php b/functions.php index 4acb7f0b..b7d006cd 100644 --- a/functions.php +++ b/functions.php @@ -4,6 +4,9 @@ function twentytwentytwo_support() { // Adding support for core block visual styles. add_theme_support( 'wp-block-styles' ); + // Adding support for featured images + add_theme_support( 'post-thumbnails' ); + } add_action( 'after_setup_theme', 'twentytwentytwo_support' ); endif; From 03c60224c0f219f85e3b3662743b85db884b1529 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 16 Oct 2021 12:11:44 -0400 Subject: [PATCH 2/2] fix whitespace --- functions.php | 1 - 1 file changed, 1 deletion(-) diff --git a/functions.php b/functions.php index b7d006cd..4ca871a7 100644 --- a/functions.php +++ b/functions.php @@ -6,7 +6,6 @@ function twentytwentytwo_support() { add_theme_support( 'wp-block-styles' ); // Adding support for featured images add_theme_support( 'post-thumbnails' ); - } add_action( 'after_setup_theme', 'twentytwentytwo_support' ); endif;