get_stylesheet_directory_uri() . '/images/header.png', 'default-text-color' => '312940', 'width' => 604, 'height' => 400, 'flex-width' => true, 'flex-height' => true, 'wp-head-callback' => 'shine_on_header_style', 'admin-head-callback' => 'shine_on_admin_header_style', 'admin-preview-callback' => 'shine_on_admin_header_image', ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'shine_on_custom_header_setup', 11 ); /* * Deregister default Twenty Thirteen custom headers */ function shine_on_deregister_headers() { unregister_default_headers( array( 'circle', 'diamond', 'star' ) ); } add_action( 'after_setup_theme', 'shine_on_deregister_headers', 99 ); /** * Change how custom header is displayed in admin */ if ( ! function_exists( 'shine_on_admin_header_style' ) ) : /** * Custom styles for the custom header page in the admin */ function shine_on_admin_header_style() { $text_color = get_header_textcolor(); ?>