*
* @package Perth
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses perth_header_style()
* @uses perth_admin_header_style()
* @uses perth_admin_header_image()
*/
function perth_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'perth_custom_header_args', array(
'default-image' => get_template_directory_uri() . '/images/header.jpg',
'default-text-color' => '000000',
'width' => 1920,
'height' => 600,
'flex-height' => true,
'wp-head-callback' => 'perth_header_style',
'admin-head-callback' => 'perth_admin_header_style',
'admin-preview-callback' => 'perth_admin_header_image',
) ) );
}
add_action( 'after_setup_theme', 'perth_custom_header_setup' );
if ( ! function_exists( 'perth_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see perth_custom_header_setup().
*/
function perth_header_style() {
?>
Header admin panel.
*
* @see perth_custom_header_setup().
*/
function perth_admin_header_style() {
?>
Header admin panel.
*
* @see perth_custom_header_setup().
*/
function perth_admin_header_image() {
$style = sprintf( ' style="color:#%s;"', get_header_textcolor() );
?>