From: Steve Sutton Date: Thu, 17 Sep 2015 18:06:33 +0000 (-0400) Subject: Update for drop down X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0baeca263b7fc9803336eb9662f9ca6a3956fb5c;p=WP-Themes%2Fglmthemes%2Fmountpleasant-theme.git Update for drop down have first 5 go normal then go left --- diff --git a/functions.php b/functions.php index 0371a65..b373f50 100644 --- a/functions.php +++ b/functions.php @@ -75,7 +75,7 @@ class Mountpleasantcvb_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' : ''; - $element->classes[] = ( $element->post_parent == 0 && $mainLevelCounter < 4 ) ? '' : 'drop-left'; + $element->classes[] = ( $element->post_parent == 0 && $mainLevelCounter < 6 ) ? '' : 'drop-left'; parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); }