* * * * * * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @author Themeisle * @version 1.1.2 * @package capri-pro */ /** * Set up the WordPress core custom header feature. * * @since 1.0.0 * @access public * @uses capri_header_style() */ function capri_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'capri_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1920, 'height' => 450, 'flex-height' => true, 'wp-head-callback' => 'capri_header_style', ) ) ); } add_action( 'after_setup_theme', 'capri_custom_header_setup' ); if ( ! function_exists( 'capri_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @since 1.0.0 * @access public * @see capri_custom_header_setup(). */ function capri_header_style() { $header_text_color = get_header_textcolor(); // If we get this far, we have custom styles. Let's do this. ?>