'', 'default-text-color' => '303030', 'width' => 1230, 'height' => 100, 'flex-width' => true, 'flex-height' => true, 'wp-head-callback' => 'edin_header_style', 'admin-head-callback' => 'edin_admin_header_style', 'admin-preview-callback' => 'edin_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'edin_custom_header_setup' ); if ( ! function_exists( 'edin_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see edin_custom_header_setup(). */ function edin_header_style() { $header_text_color = get_header_textcolor(); // 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 ) { return; } // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see edin_custom_header_setup(). */ function edin_admin_header_style() { ?> Header admin panel. * * @see edin_custom_header_setup(). */ function edin_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?>

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

attachment_id ) ) { // For static headers, less intensive approach. $attachment_id = $data->attachment_id; } if ( $attachment_id ) { $alt = trim( strip_tags( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) ) ); if ( ! $alt ) { // Fallback to caption (excerpt) $alt = trim( strip_tags( get_post_field( 'post_excerpt', $attachment_id ) ) ); } if ( ! $alt ) { // Fallback to title $alt = trim( strip_tags( get_post_field( 'post_title', $attachment_id ) ) ); } } else { $alt = ''; } return $alt; }