*
* @package store
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses store_header_style()
* @uses store_admin_header_style()
* @uses store_admin_header_image()
*/
function store_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'store_custom_header_args', array(
'default-image' => '',
'default-text-color' => '#ffffff',
'height' => 400,
'width' => 1200,
'flex-height' => true,
'wp-head-callback' => 'store_header_style',
'admin-head-callback' => 'store_admin_header_style',
'admin-preview-callback' => 'store_admin_header_image',
) ) );
}
add_action( 'after_setup_theme', 'store_custom_header_setup' );
if ( ! function_exists( 'store_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see store_custom_header_setup().
*/
function store_header_style() {
?>
Header admin panel.
*
* @see store_custom_header_setup().
*/
function store_admin_header_style() {
?>
Header admin panel.
*
* @see store_custom_header_setup().
*/
function store_admin_header_image() {
$style = sprintf( ' style="color:#%s;"', get_header_textcolor() );
?>