removing excerpt from menu walker
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 26 Jan 2018 21:15:59 +0000 (16:15 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 26 Jan 2018 21:15:59 +0000 (16:15 -0500)
excerpt being done in main-nav, removing from menu walker

inc/menu-walker.php

index 81bdccf..9200d14 100644 (file)
@@ -55,27 +55,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
         } 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 ) ) {