'444', // Set height and width, with a maximum value for the width. 'height' => 200, 'width' => 978, // Support flexible height and width. 'flex-height' => true, 'flex-width' => true, // Random image rotation off by default. 'random-default' => false, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'simplecatch_header_style', ); $args = apply_filters( 'simplecatch_custom_header_args', $args ); /* * This theme supports custom header for logo * */ add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'simplecatch_custom_header_setup' ); if ( ! function_exists( 'simplecatch_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @since Simple Catch 2.7 */ function simplecatch_header_style() { $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( get_theme_support( 'custom-header', 'default-text-color' ) === $text_color ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @since Simple Catch 2.7 */ function simplecatch_custom_header_image() { $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?>