Custom Header
if ( ! function_exists('plm_custom_theme_features') ) {
// Register Theme Features
function plm_custom_theme_features() {
global $wp_version;
// Add theme support for Custom Header
$header_args = array(
'default-image' => '',
'width' => 960,
'height' => 150,
'flex-width' => false,
'flex-height' => true,
'random-default' => true,
'header-text' => true,
'default-text-color' => 'white',
'uploads' => true,
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
if ( version_compare( $wp_version, '3.4', '>=' ) ) :
add_theme_support( 'custom-header', $header_args );
else :
add_custom_image_header();
endif;
}
// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'plm_custom_theme_features' );
}