diff --git a/src/wp-content/themes/twentyfourteen/content-featured-post.php b/src/wp-content/themes/twentyfourteen/content-featured-post.php index 52e5cf6c81..7d7099f4d8 100644 --- a/src/wp-content/themes/twentyfourteen/content-featured-post.php +++ b/src/wp-content/themes/twentyfourteen/content-featured-post.php @@ -27,10 +27,6 @@ if ( $images ) : $image = array_shift( $images ); echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-featured' ); - - else : ?> - @@ -46,9 +42,5 @@ ', '' ); ?> - -
- -
diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 5acb1bb796..b42f50f76f 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -69,7 +69,7 @@ function twentyfourteen_setup() { // Add several sizes for Post Thumbnails. add_image_size( 'featured-thumbnail-large', 672, 0 ); - add_image_size( 'featured-thumbnail-featured', 672, 336, true ); + add_image_size( 'featured-thumbnail-featured', 672, 372, true ); add_image_size( 'featured-thumbnail-formatted', 306, 0 ); // This theme uses wp_nav_menu() in two locations. @@ -253,63 +253,6 @@ function twentyfourteen_admin_fonts() { } add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' ); -/** - * Set the post excerpt length to 20 words. - * - * @since Twenty Fourteen 1.0 - * - * @param int $length - * @return int - */ -function twentyfourteen_excerpt_length( $length ) { - return 20; -} -add_filter( 'excerpt_length', 'twentyfourteen_excerpt_length' ); - -/** - * Return a "Continue Reading" link for excerpts. - * - * @since Twenty Fourteen 1.0 - * - * @return string - */ -function twentyfourteen_continue_reading_link() { - return ' ' . __( 'Read More ', 'twentyfourteen' ) . ''; -} - -/** - * Replace "[...]" (appended to automatically generated excerpts) with an - * ellipsis and twentyfourteen_continue_reading_link(). - * - * @since Twenty Fourteen 1.0 - * - * @param string $more - * @return string - */ -function twentyfourteen_auto_excerpt_more( $more ) { - return ' …' . twentyfourteen_continue_reading_link(); -} -add_filter( 'excerpt_more', 'twentyfourteen_auto_excerpt_more' ); - -/** - * Add a pretty "Continue Reading" link to custom post excerpts. - * - * To override this link in a child theme, remove the filter and add your own - * function tied to the get_the_excerpt filter hook. - * - * @since Twenty Fourteen 1.0 - * - * @param string $output - * @return string - */ -function twentyfourteen_custom_excerpt_more( $output ) { - if ( has_excerpt() && ! is_attachment() ) { - $output .= twentyfourteen_continue_reading_link(); - } - return $output; -} -add_filter( 'get_the_excerpt', 'twentyfourteen_custom_excerpt_more' ); - if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) : /** * Print the attached image with a link to the next attached image. diff --git a/src/wp-content/themes/twentyfourteen/images/placeholder.png b/src/wp-content/themes/twentyfourteen/images/placeholder.png deleted file mode 100644 index 37377c352a..0000000000 Binary files a/src/wp-content/themes/twentyfourteen/images/placeholder.png and /dev/null differ diff --git a/src/wp-content/themes/twentyfourteen/style.css b/src/wp-content/themes/twentyfourteen/style.css index cff4ed0d5a..20cc422b9b 100644 --- a/src/wp-content/themes/twentyfourteen/style.css +++ b/src/wp-content/themes/twentyfourteen/style.css @@ -3013,6 +3013,10 @@ span + .edit-link:before, margin-left: 60px; } + .featured-content { + margin-bottom: -24px; + } + .attachment-featured-featured { height: 192px; }