* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package Dandy */ /** * Set up the WordPress core custom header feature. * * @uses dandy_header_style() */ function dandy_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'dandy_custom_header_args', array( 'default-image' => get_template_directory_uri() . '/images/slide.jpg', 'width' => 1170, 'height' => 400, 'flex-height' => true, 'header-text' => false, ) ) ); } add_action( 'after_setup_theme', 'dandy_custom_header_setup' );