From 85df1aea0754d6ee0769963ee239a0ec88c632a6 Mon Sep 17 00:00:00 2001 From: Ian Stewart Date: Tue, 11 Nov 2014 19:01:47 +0000 Subject: [PATCH] Twenty Fifteen: simpler CSS by using divs instead of spans for menu descriptions. Props philiparthurmoore, fixes #30296 git-svn-id: https://develop.svn.wordpress.org/trunk@30302 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/functions.php | 2 +- src/wp-content/themes/twentyfifteen/style.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index a5545d833f..ebba907252 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -294,7 +294,7 @@ add_action( 'wp_enqueue_scripts', 'twentyfifteen_post_nav_background' ); */ function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) { if ( 'primary' == $args->theme_location && $item->description ) { - $item_output = str_replace( $args->link_after . '', '' . $item->description . '' . $args->link_after . '', $item_output ); + $item_output = str_replace( $args->link_after . '', '' . $args->link_after . '', $item_output ); } return $item_output; diff --git a/src/wp-content/themes/twentyfifteen/style.css b/src/wp-content/themes/twentyfifteen/style.css index fb2295c564..5951091640 100644 --- a/src/wp-content/themes/twentyfifteen/style.css +++ b/src/wp-content/themes/twentyfifteen/style.css @@ -692,7 +692,6 @@ a:focus { .main-navigation .menu-item-description { color: #707070; color: rgba(51, 51, 51, 0.7); - display: block; font-family: "Noto Sans", sans-serif; font-size: 12px; font-size: 1.2rem;