* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package Acumen */ /** * Set up the WordPress core custom header feature. * * @uses acumen_header_style() */ function acumen_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'acumen_custom_header_args', array( 'default-image' => get_parent_theme_file_uri( '/images/header-image.jpg' ), 'default-text-color' => 'ececec', 'width' => 1920, 'height' => 1080, 'flex-height' => true, 'wp-head-callback' => 'acumen_header_style', 'video' => true, ) ) ); $header_images = array( 'default' => array( 'url' => get_parent_theme_file_uri( '/images/header-image.jpg' ), 'thumbnail_url' => get_parent_theme_file_uri( '/images/header-image-275x155.jpg' ), ), ); register_default_headers( $header_images ); } add_action( 'after_setup_theme', 'acumen_custom_header_setup' ); if ( ! function_exists( 'acumen_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see acumen_custom_header_setup(). */ function acumen_header_style() { $header_image = get_header_image(); if ( $header_image ) : ?>
', '' ); if ( is_single() ) : ?>