From ac98214fe6b2e2990e02cef304d2356ff944d296 Mon Sep 17 00:00:00 2001 From: Jeff Ong Date: Mon, 19 Apr 2021 15:42:42 -0400 Subject: [PATCH] Remove theme support: block-templates. --- quadrat/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quadrat/functions.php b/quadrat/functions.php index 3a8f5bace9..cb0523f927 100644 --- a/quadrat/functions.php +++ b/quadrat/functions.php @@ -9,6 +9,9 @@ function quadrat_support() { '/assets/theme.css', ) ); + + // Remove theme support for block templates so that styles load correctly: + remove_theme_support( 'block-templates' ); } add_action( 'after_setup_theme', 'quadrat_support' ); endif; @@ -53,4 +56,4 @@ function quadrat_override_block_templates( $template ) { } -add_filter( 'template_include', 'quadrat_override_block_templates' ); \ No newline at end of file +add_filter( 'template_include', 'quadrat_override_block_templates' );