From: Anthony Talarico Date: Thu, 16 Mar 2017 16:50:20 +0000 (-0400) Subject: changing the menu element ids in the menu walker when checking to change X-Git-Tag: v1.0.0^2~109 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d622090e5123e6030d0d15ec1d925625c8cae668;p=WP-Themes%2Fmackinawferry.git changing the menu element ids in the menu walker when checking to change the drop left and right classes for the dropdown elements --- diff --git a/lib/menu-walker.php b/lib/menu-walker.php index 9549bd3..61b828a 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -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';