From 0baeca263b7fc9803336eb9662f9ca6a3956fb5c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 17 Sep 2015 14:06:33 -0400 Subject: [PATCH] Update for drop down have first 5 go normal then go left --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.17.1