add_theme_support not working from child theme


I’m on WordPress 5.8

Within my active child theme for TwentyTwentyOne, I placed the following code in my functions.php file, in hope to override logo settings and see less post format options for posts on the backend..

function kl_theme_setup() {
  $defaults = array(
      'height'               => 100,
      'width'                => 10,
      'flex-height'          => true,
      'flex-width'           => true,
      'header-text'          => array( 'demo site-title', 'demo site-description' ),
      'unlink-homepage-logo' => false,

  add_theme_support( 'custom-logo', $defaults );

  add_theme_support( 'post-formats', array(
      'aside', 'image', 'video', 'quote'
  ) );


add_action( 'after_setup_theme', 'kl_theme_setup' );

Zero impact on the logo displayed on top of my page. Zero impact on post formats being displayed on the back-end. What I am doing wrong?

From this same functions.php file, I can enqueue my custom stylesheets, I can echo statements, and do other things. But I can’t get add_theme_support() to have any impact on the site…

klewis 1 year 2021-07-29T16:23:11-05:00 0 Answers 0 views 0

Leave an answer