'%s/images/headers/header-image.png', 'default-text-color' => 'fff', 'width' => 1800, 'height' => 848, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'financerecruitment_header_style', ) ) ); /* * Default custom headers packaged with the theme. * %s is a placeholder for the theme template directory URI. */ register_default_headers( array( 'mountains' => array( 'url' => '%s/images/headers/header-image.png', 'thumbnail_url' => '%s/images/headers/header-image_thumbnail.png', 'description' => _x( 'food', 'header image description', 'financerecruitment' ) ), ) ); } add_action( 'after_setup_theme', 'financerecruitment_custom_header_setup' ); if ( ! function_exists( 'financerecruitment_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see financerecruitment_custom_header_setup(). */ function financerecruitment_header_style() { $header_image = get_header_image(); $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $header_text_color == get_theme_support( 'custom-header', 'default-text-color' ) ){ return; } // If we get this far, we have custom styles. ?>