get_parent_theme_file_uri() . '/resource/img/banner.png', 'default-text-color' => 'fff', 'header-text' => false, 'width' => 1360, 'height' => 110, 'flex-width' => true, 'flex-height' => true, 'wp-head-callback' => 'aster_it_solutions_header_style', ) ) ); register_default_headers( array( 'default-image' => array( 'url' => '%s/resource/img/banner.png', 'thumbnail_url' => '%s/resource/img/banner.png', 'description' => __( 'Default Header Image', 'aster-it-solutions' ), ), ) ); } add_action( 'after_setup_theme', 'aster_it_solutions_custom_header_setup' ); if ( ! function_exists( 'aster_it_solutions_header_style' ) ) : add_action( 'wp_enqueue_scripts', 'aster_it_solutions_header_style' ); function aster_it_solutions_header_style() { if ( get_header_image() ) : $aster_it_solutions_custom_css = " .header-background-image{ background-image:url('".esc_url(get_header_image())."') !important; background-position: center; background-size: cover; }"; wp_add_inline_style( 'aster-it-solutions-style', $aster_it_solutions_custom_css ); endif; } endif;