'#f2f2f2', ) ) ); /** * Filter the arguments used when adding 'custom-header' support in Clean Portfolio. * * @since Clean Portfolio 0.1 * */ add_theme_support( 'custom-header', apply_filters( 'cleanportfolio_custom_header_args', array( 'default-text-color' => '#555555', 'width' => 1920, 'height' => 1080, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'cleanportfolio_header_style', 'video' => true, ) ) ); } add_action( 'after_setup_theme', 'cleanportfolio_custom_header_and_background' ); /** * Customize video play/pause button in the custom header. */ function cleanportfolio_video_controls( $settings ) { $settings['l10n']['play'] = '' . esc_html__( 'Play background video', 'cleanportfolio' ) . '' . cleanportfolio_get_svg( array( 'icon' => 'play' ) ); $settings['l10n']['pause'] = '' . esc_html__( 'Pause background video', 'cleanportfolio' ) . '' . cleanportfolio_get_svg( array( 'icon' => 'pause' ) ); return $settings; } add_filter( 'header_video_settings', 'cleanportfolio_video_controls' ); if ( ! function_exists( 'cleanportfolio_header_style' ) ) : /** * Styles the header text displayed on the site. * * Create your own cleanportfolio_header_style() function to override in a child theme. * * @since Clean Portfolio 0.1 * * @see cleanportfolio_custom_header_and_background(). */ function cleanportfolio_header_style() { $header_image = get_header_image(); if ( $header_image ) : ?>