'', 'random-default' => false, 'width' => 1280, 'height' => 600, 'flex-width' => true, 'flex-height' => true, 'default-text-color' => '000000', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => 'envince_custom_header_wp_head', 'admin-head-callback' => 'envince_custom_header_admin_head', 'admin-preview-callback' => 'envince_custom_header_admin_preview', ) ); /* Registers default headers for the theme. */ //register_default_headers(); } /** * Callback function for outputting the custom header CSS to `wp_head`. * * @since 1.0.0 * @access public * @return void */ function envince_custom_header_wp_head() { if ( !display_header_text() ) return; $hex = get_header_textcolor(); if ( empty( $hex ) ) return; $style = "body.custom-header #site-title a { color: #{$hex}; }"; echo "\n" . '' . "\n"; } /** * Callback for the admin preview output on the "Appearance > Custom Header" screen. * * @since 1.0.0 * @access public * @return void */ function envince_custom_header_admin_preview() { ?>
class. ?>>
>
Custom Header". See * the `css/admin-custom-header.css` file for all the style rules specific to this screen. * * @since 1.0.0 * @access public * @return void */ function envince_custom_header_admin_head() { $hex = get_header_textcolor(); if ( empty( $hex ) ) return; $style = "#site-title a { color: #{$hex}; }"; echo "\n" . '' . "\n"; }