excerpt being done in main-nav, removing from menu walker
} else {
$item_style .= "<style>#menu-item-".$object->ID." > .sub-menu:before { background-image: none; } #menu-item-".$object->ID." > .sub-menu { padding-top: 21px;}</style>";
}
- $hasExcerpt = has_excerpt($object->object_id);
- if($depth == 0 && $hasExcerpt){
- $the_excerpt = get_the_excerpt($object->object_id);
-
- $item_style .= "<style>
- .menu-item-".$object->ID." > .submenu:after{
- display: inline-block;
- height: 100px;
- content: '$the_excerpt';
- position: absolute;
- font-size: 12px;
- left: 15px;
- top: 125px;
- text-align: left;
- max-width: 200px;
- line-height: 1.1;
- color: white;
- }
- </style>";
- }
//$output .= ( 0 == $depth ) ? '<li class="divider"></li>' : '';
$classes = empty( $object->classes ) ? array() : (array) $object->classes;
if ( in_array( 'label', $classes ) ) {