* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package bpt-bootstrap */ /** * Set up the WordPress core custom header feature. * * @uses bptbootstrap_header_style() */ function bptbootstrap_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'wp_bootstrap_custom_header_args', array( 'default-image' => '', 'default-text-color' => 'FFF', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'bptbootstrap_header_style', ) ) ); } add_action( 'after_setup_theme', 'bptbootstrap_custom_header_setup' ); if ( ! function_exists( 'bptbootstrap_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see bptbootstrap_header_style(). */ function bptbootstrap_header_style() { $header_text_color = get_header_textcolor(); $header_image = get_header_image(); // If we get this far, we have custom styles. Let's do this. ?>