'EAEAEA', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 292, 'width' => 1144, 'max-width' => 2000, // 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' => 'ribosome_header_style', 'admin-head-callback' => 'ribosome_admin_header_style', 'admin-preview-callback' => 'ribosome_admin_header_image', ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'ribosome_custom_header_setup' ); /** * Load our special font CSS file. * * @since Ribosome 1.0 */ function ribosome_custom_header_fonts() { $font_url = ribosome_get_font_url(); if ( ! empty( $font_url ) ) wp_enqueue_style( 'ribosome-fonts', esc_url_raw( $font_url ), array(), null ); } add_action( 'admin_print_styles-appearance_page_custom-header', 'ribosome_custom_header_fonts' ); /** * Style the header text displayed on the blog. * * get_header_textcolor() options: 515151 is default, hide text (returns 'blank'), or any hex value. * * @since Ribosome 1.0 */ function ribosome_header_style() { $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. * * @since Ribosome 1.0 */ function ribosome_admin_header_style() { ?> Header admin panel. * * This callback overrides the default markup displayed there. * * @since Ribosome 1.0 */ function ribosome_admin_header_image() { ?>

onclick="return false;" href="" tabindex="-1">

>