'%s/img/default-header.jpg', 'default-text-color' => 'fff', 'width' => 900, 'height' => 1600, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'bushwick_header_style', 'admin-head-callback' => 'bushwick_admin_header_style', 'admin-preview-callback' => 'bushwick_admin_header_image', ) ) ); add_action( 'admin_print_styles-appearance_page_custom-header', 'bushwick_fonts' ); } add_action( 'after_setup_theme', 'bushwick_custom_header_setup' ); if ( ! function_exists( 'bushwick_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see bushwick_custom_header_setup(). */ function bushwick_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); if ( is_singular( array( 'post', 'page') ) ) { $attachment = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); $header_image = empty( $attachment[0] ) ? $header_image : $attachment[0]; } // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. * * @see bushwick_custom_header_setup(). */ function bushwick_admin_header_style() { ?> Header admin panel. * * @see bushwick_custom_header_setup(). */ function bushwick_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?>

onclick="return false;" href="">

>