From 78e414a85738739578720e752b44921e2299b2c9 Mon Sep 17 00:00:00 2001 From: olefredrik Date: Sat, 19 Sep 2015 16:36:06 +0200 Subject: [PATCH 1/3] Remove custom header support, as featured images provide more options --- functions.php | 3 --- library/custom-header.php | 22 ---------------------- 2 files changed, 25 deletions(-) delete mode 100755 library/custom-header.php diff --git a/functions.php b/functions.php index 36c2f657f..19d28bf81 100755 --- a/functions.php +++ b/functions.php @@ -42,9 +42,6 @@ /** Add theme support */ require_once( 'library/theme-support.php' ); -/** Add Header image */ -require_once( 'library/custom-header.php' ); - /** Add Nav Options to Customer */ require_once( 'library/custom-nav.php' ); diff --git a/library/custom-header.php b/library/custom-header.php deleted file mode 100755 index 54f2eb506..000000000 --- a/library/custom-header.php +++ /dev/null @@ -1,22 +0,0 @@ - '', - 'width' => 0, - 'height' => 0, - 'flex-width' => false, - 'flex-height' => false, - 'uploads' => true, - 'random-default' => false, - 'header-text' => false, - 'default-text-color' => '', - 'wp-head' => '', - 'admin-head-callback' => '', - 'admin-preview-callback' => '', -); - - add_theme_support( 'custom-header', $defaults ); - - ?> \ No newline at end of file From 7c98bd3aee3f0c4b2304adf9a6699eb6ae072bb0 Mon Sep 17 00:00:00 2001 From: olefredrik Date: Sat, 19 Sep 2015 16:44:18 +0200 Subject: [PATCH 2/3] Only render the header tag if a featured image is set --- parts/featured-image.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/parts/featured-image.php b/parts/featured-image.php index 0f45d14c6..9f81c36ef 100755 --- a/parts/featured-image.php +++ b/parts/featured-image.php @@ -3,11 +3,6 @@ if ( has_post_thumbnail( $post->ID ) ) : $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); $image = $image[0]; - echo '