'fff', 'default-image' => '%s/img/header-top.jpg', // Set height and width, with a maximum value for the width. 'height' => 500, 'width' => 1920, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'hipword_header_style', 'admin-head-callback' => 'hipword_admin_header_style', 'admin-preview-callback' => 'hipword_admin_header_image', ); add_theme_support( 'custom-header', $args ); /* * Default custom headers packaged with the theme. * %s is a placeholder for the theme template directory URI. */ register_default_headers( array( 'Deafult' => array( 'url' => '%s/img/header-top.jpg', 'thumbnail_url' => '%s/img/header-top.jpg', 'description' => _x( 'Deafult', 'header image description', 'hipword' ) ), 'Deafult2' => array( 'url' => '%s/img/header-top2.jpg', 'thumbnail_url' => '%s/img/header-top2.jpg', 'description' => _x( 'Deafult2', 'header image description', 'hipword' ) ), 'Deafult3' => array( 'url' => '%s/img/header-top3.jpg', 'thumbnail_url' => '%s/img/header-top3.jpg', 'description' => _x( 'Deafult3', 'header image description', 'hipword' ) ), 'Deafult4' => array( 'url' => '%s/img/header-top4.jpg', 'thumbnail_url' => '%s/img/header-top4.jpg', 'description' => _x( 'Deafult4', 'header image description', 'hipword' ) ), 'Deafult5' => array( 'url' => '%s/img/header-top5.jpg', 'thumbnail_url' => '%s/img/header-top5.jpg', 'description' => _x( 'Deafult5', 'header image description', 'hipword' ) ), ) ); } add_action( 'after_setup_theme', 'hipword_custom_header_setup', 11 ); function hipword_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. */ function hipword_admin_header_style() { $header_image = get_header_image(); ?> Header admin panel. * This callback overrides the default markup displayed there. */ function hipword_admin_header_image() { ?>