get_template_directory_uri() . '/images/header-default.jpg', 'default-text-color' => 'ffffff', 'height' => 600, 'width' => 1200, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'eighties_header_style', 'admin-head-callback' => 'eighties_admin_header_style', 'admin-preview-callback' => 'eighties_admin_header_image', ) ) ); // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'times_square' => array( 'url' => '%s/images/header-default.jpg', 'thumbnail_url' => '%s/images/header-default-thumbnail.jpg', 'description' => _x( 'Times Square', 'header image description', 'eighties' ) ), ) ); } add_action( 'after_setup_theme', 'eighties_custom_header_setup' ); if ( ! function_exists( 'eighties_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see eighties_custom_header_setup(). */ function eighties_header_style() { $header_text_color = get_header_textcolor(); $header_image = eighties_header_image(); $header = get_custom_header(); // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( ( HEADER_TEXTCOLOR == $header_text_color ) && ! $header_image ) { return; } // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see eighties_custom_header_setup(). */ function eighties_admin_header_style() { $header = get_custom_header(); ?> Header admin panel. * * @see eighties_custom_header_setup(). */ function eighties_admin_header_image() { $style = sprintf( 'style="color:#%s;"', get_header_textcolor() ); ?>

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

>