* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package gbs-unique */ /** * Set up the WordPress core custom header feature. * * @uses gbs_unique_header_style() */ function gbs_unique_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'gbs_unique_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'gbs_unique_header_style', ) ) ); } add_action( 'after_setup_theme', 'gbs_unique_custom_header_setup' ); if ( ! function_exists( 'gbs_unique_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see gbs-unique_custom_header_setup(). */ function gbs_unique_header_style() { $header_text_color = get_header_textcolor(); ?>