Header screen. * @type string $admin_preview_callback Callback function used to create the custom header markup in * the Appearance > Header screen. * } */ add_theme_support( 'custom-header', apply_filters( 'aa_custom_header_args', array( 'default-text-color' => 'fff', 'width' => 1170, 'height' => 400, 'flex-height' => true, 'wp-head-callback' => 'aa_header_style', 'admin-head-callback' => 'aa_admin_header_style', 'admin-preview-callback' => 'aa_admin_header_image', ) ) ); } if ( ! function_exists( 'aa_header_style' ) ) : /** * Styles the header image and text displayed on the blog * @see aa_custom_header_setup(). */ function aa_header_style() { $text_color = get_header_textcolor(); // If no custom color for text is set, let's bail. if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header screen. * @see aa_custom_header_setup() */ function aa_admin_header_style() { $maincol = get_theme_option('col1'); $dark10 = darken($maincol, 10); ?> Header screen. * @see aa_custom_header_setup() */ function aa_admin_header_image() { ?>
sfondo testata