'ffffff', 'default-image' => get_template_directory_uri() . '/images/header-image.png', // Set height and width, with a maximum value for the width. 'height' => 317, 'width' => 1024, 'max-width' => 2000, // Support flexible height and width. 'flex-height' => false, 'flex-width' => false, // Random image rotation off by default. 'random-default' => false, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'silver_quantum_header_style', ); add_theme_support( 'custom-header', $args ); } add_action('after_setup_theme', 'silver_quantum_custom_header_setup'); /* ================================================================================================ 2.0 - Custom Header CSS ================================================================================================ */ function silver_quantum_header_style() { $text_color = get_header_textcolor(); if ($text_color == get_theme_support('custom-header', 'default-text-color')) { return; } ?>