get_parent_theme_file_uri( '/assets/images/header-image.jpg' ), 'default-text-color' => $default_text_color, 'width' => 1920, 'height' => 1080, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'bold_photography_header_style', 'video' => true, ) ) ); register_default_headers( array( 'default-image' => array( 'url' => '%s/assets/images/header-image.jpg', 'thumbnail_url' => '%s/assets/images/header-image-275x155.jpg', 'description' => esc_html__( 'Default Header Image', 'bold-photography' ), ), ) ); } add_action( 'after_setup_theme', 'bold_photography_custom_header_and_background' ); /** * Render the site title for the selective refresh partial. * * @since Bold Photography 1.0 * @see bold_photography_customize_register() * * @return void */ function bold_photography_customize_partial_blogname() { bloginfo( 'name' ); } /** * Render the site tagline for the selective refresh partial. * * @since Bold Photography 1.0 * @see bold_photography_customize_register() * * @return void */ function bold_photography_customize_partial_blogdescription() { bloginfo( 'description' ); } /** * Binds the JS listener to make Customizer color_scheme control. * * Passes color scheme data as colorScheme global. * * @since Bold Photography 1.0 */ function bold_photography_customize_control_js() { wp_enqueue_style( 'bold-photography-custom-controls-css', trailingslashit( esc_url( get_template_directory_uri() ) ) . 'assets/css/customizer.css' ); } add_action( 'customize_controls_enqueue_scripts', 'bold_photography_customize_control_js' );