Ticket #30296: 30296-divs.diff
File 30296-divs.diff, 711 bytes (added by , 11 years ago) |
---|
-
functions.php
294 294 */ 295 295 function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) { 296 296 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 ); 298 298 } 299 299 300 300 return $item_output;