From b89ea9ea6618b059487f791d91f7ba4575ae1158 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 16 Oct 2013 03:46:29 +0000 Subject: [PATCH] Twenty Fourteen: remove excerpts from featured posts, and display full titles instead. Props iamtakashi, closes #25581. git-svn-id: https://develop.svn.wordpress.org/trunk@25804 602fd350-edb4-49c9-b593-d223f7449a82 --- .../twentyfourteen/content-featured-post.php | 8 --- .../themes/twentyfourteen/functions.php | 59 +----------------- .../twentyfourteen/images/placeholder.png | Bin 3466 -> 0 bytes .../themes/twentyfourteen/style.css | 4 ++ 4 files changed, 5 insertions(+), 66 deletions(-) delete mode 100644 src/wp-content/themes/twentyfourteen/images/placeholder.png 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 37377c352a59daccf1644be5b1b1ff76c5348a39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3466 zcmcIn2~<;88h$SeOITGPve_84;6g%31PO_}zypnCQ=wACC5AvKCZWj#lTh_h&nO&a zDJ?G8z$;qnw8y1WTpC5D?KxP-0(> zzyJI1`(MgZlb5^E{AdsaxrtYxt09O)KoFejL`dg(O$DS|-WXy>UqpydMrg$$E0w2CcC z4PPr{KGEfazI~d_WITaj`9kKDQyEFAj5w8A##qAQhDyUY97aS0i^E$I5y4r^2oK|g zv%|nQ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heiWiMxe{wiE9!h5LWtXt;p9K>^yh!b0{X8Z7d@MGP2mK-&k;Lo zm}t$e!%3Me)1u%xdt(mFNkuMG^&;#{@l|my>k;H-3h%n}*n0mmHc;(>z@cP$*HBS? zGXIRH9avk`ZnSN@H>=_*1prGLQ#y?2=o_)cs{qnNZt3`b=w3}sWz>y804CMi#sd0u zqOooMVB}c4%&NC!f8DDJ*y~9JWIRXEA~^WqlNk*-$*3pF7YI(w0Q2c&+t8yt``WTR8Z_G6P}V4qhIfA$4~AnQSI zHd=Wa#6wHOwEXh(qrRC{nJNbqrZ%l0%IUrP`=an~gZ03tJ>)L!BircCfGP`m1}x7e zd^=J+)UmW=V2S+TygHB8HUEx zJ8M@$fvmP-D1@NL2tAJ9z5N>BM18fA=3j5TGnXi&Sghx~fBO297uL~c^gbc<*T=4W$Y!r5H3&q_l^RK~8?#QHeBdG%_{&u`k}>t(K2s1$!v9jVZ|&?vVbg%091*)1~;gs_b-Sd|rzGy<)#W wYr3reN5y`D*7LIdFx2zu>%nhV>yNJPsI;A;9G)RQV*hs}j!#C9$8LJ-U+?Lva{vGU 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; }