* * @package plum */ /** * Set up the WordPress core custom header feature. * * @uses plum_header_style() * @uses plum_admin_header_style() * @uses plum_admin_header_image() */ function plum_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'plum_custom_header_args', array( 'default-image' => get_template_directory_uri().'/assets/images/header.jpg', 'default-text-color' => '#ffffff', 'height' => 400, 'width' => 1200, 'flex-height' => true, 'wp-head-callback' => 'plum_header_style', ) ) ); } add_action( 'after_setup_theme', 'plum_custom_header_setup' ); if ( ! function_exists( 'plum_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see plum_custom_header_setup(). */ function plum_header_style() { if (is_single() && has_post_thumbnail()) : $image_data = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), "full" ); ?>