Make WordPress Core

Ticket #30296: 30296-divs-1.diff

File 30296-divs-1.diff, 1.0 KB (added by philiparthurmoore, 11 years ago)

Use DIVs instead of SPANs and remove unnecessary CSS.

  • functions.php

     
    294294 */
    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
    300300        return $item_output;
  • style.css

     
    692692.main-navigation .menu-item-description {
    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;
    698697        font-size: 1.2rem;