'220e10', 'default-image' => '%s/images/headers/home-banner.jpg', // Set height and width, with a maximum value for the width. 'height' => 440, 'width' => 1349, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'multishop_header_style', 'admin-head-callback' => 'multishop_admin_header_style', 'admin-preview-callback' => 'multishop_admin_header_image', ); add_theme_support( 'custom-header', $multishop_args ); /* * Default custom headers packaged with the theme. * %s is a placeholder for the theme template directory URI. */ register_default_headers( array( 'circle' => array( 'url' => '%s/images/headers/home-banner.jpg', 'thumbnail_url' => '%s/images/headers/home-banner-thumbnail.jpg', 'description' => _x( 'Circle', 'header image description', 'multishop' ) ), ) ); } add_action( 'after_setup_theme', 'multishop_custom_header_setup' ); /** * Loads our special font CSS files. */ function multishop_custom_header_fonts() { // Add Open Sans and Bitter fonts. wp_enqueue_style( 'multishop-fonts', multishop_font_url(), array(), null ); } add_action( 'admin_print_styles-appearance_page_custom-header', 'multishop_custom_header_fonts' ); /* * Styles the header text displayed on the blog. */ function multishop_header_style() { $multishop_header_image = get_header_image(); $multishop_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $multishop_header_image ) && $multishop_text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. */ function multishop_admin_header_style() { $multishop_header_image = get_header_image(); ?> Header admin panel. */ function multishop_admin_header_image() { ?>