changing the menu element ids in the menu walker when checking to change
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Mar 2017 16:50:20 +0000 (12:50 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Mar 2017 16:50:20 +0000 (12:50 -0400)
the drop left and right classes for the dropdown elements

lib/menu-walker.php

index 9549bd3..61b828a 100644 (file)
@@ -13,7 +13,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
         $element->has_children = ! empty( $children_elements[ $element->ID ] );
         $element->classes[] = ( $element->current || $element->current_item_ancestor ) ? 'active' : '';
         $element->classes[] = ( $element->has_children && 1 !== $max_depth ) ? 'has-dropdown' : '';
-        if( $element->ID === 330 || $element->ID === 331 ){
+        if( $element->ID === 231 || $element->ID === 232 ){
             $element->classes[] = ( $element->post_parent == 0 && $mainLevelCounter < 1 ) ? '' : 'drop-right parent';
         } else {
             $element->classes[] = ( $element->post_parent == 0 && $mainLevelCounter < 1 ) ? '' : 'drop-left parent';