* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ */ /** * Set up the WordPress core custom header feature. * * @uses seos_video_header_style() */ function seos_video_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'seos_video_custom_header_args', array( 'default-image' => get_template_directory_uri() . '/images/header.png', 'default-text-color' => 'CEBF94', 'width' => 1300, 'height' => 100, 'flex-height' => true, 'wp-head-callback' => 'seos_video_header_style', ) ) ); } add_action( 'after_setup_theme', 'seos_video_custom_header_setup' ); register_default_headers( array( 'yourimg' => array( 'url' => get_template_directory_uri() . '/images/header.png', 'thumbnail_url' => get_template_directory_uri() . '/images/header.png', 'description' => _x( 'Default Image', 'header image description', 'seos-video' )), )); if ( ! function_exists( 'seos_video_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see seos_video_custom_header_setup(). */ function seos_video_header_style() { $seos_video_header_text_color = get_header_textcolor(); // If we get this far, we have custom styles. Let's do this. ?>