Make WordPress Core

Changeset 30302


Ignore:
Timestamp:
11/11/2014 07:01:47 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: simpler CSS by using divs instead of spans for menu descriptions.

Props philiparthurmoore, fixes #30296

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r30273 r30302  
    295295function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) {
    296296    if ( 'primary' == $args->theme_location && $item->description ) {
    297         $item_output = str_replace( $args->link_after . '</a>', '<span class="menu-item-description">' . $item->description . '</span>' . $args->link_after . '</a>', $item_output );
     297        $item_output = str_replace( $args->link_after . '</a>', '<div class="menu-item-description">' . $item->description . '</div>' . $args->link_after . '</a>', $item_output );
    298298    }
    299299
  • trunk/src/wp-content/themes/twentyfifteen/style.css

    r30269 r30302  
    693693    color: #707070;
    694694    color: rgba(51, 51, 51, 0.7);
    695     display: block;
    696695    font-family: "Noto Sans", sans-serif;
    697696    font-size: 12px;
Note: See TracChangeset for help on using the changeset viewer.