'666', 'width' => 960, 'height' => 490, 'flex-height' => true, 'wp-head-callback' => 'widely_header_style', 'admin-head-callback' => 'widely_admin_header_style', 'admin-preview-callback' => 'widely_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'widely_custom_header_setup' ); if ( ! function_exists( 'widely_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see widely_custom_header_setup(). * * @since Widely 1.0 */ function widely_header_style() { // If no custom options for text are set, let's bail // get_header_textcolor() options: the default set via add_theme_support(), hide text (returns 'blank') or any hex value if ( get_theme_support( 'custom-header', 'default-text-color' ) === get_header_textcolor() ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see widely_custom_header_setup(). * * @since Widely 1.0 */ function widely_admin_header_style() { ?> Header admin panel. * * @see widely_custom_header_setup(). * * @since Widely 1.0 */ function widely_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); $header_image = get_header_image(); ?>