From: Anthony Talarico Date: Tue, 22 May 2018 19:43:16 +0000 (-0400) Subject: fixing the navigation page ids for the topbar menus X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=e259b9efdee06ff87884777ab280e201e797fba7;p=WP-Themes%2Ffrederictownship.git fixing the navigation page ids for the topbar menus --- diff --git a/lib/navigation.php b/lib/navigation.php index e792480..5164c83 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -205,24 +205,24 @@ function glm_side_menu($mobile = false) { // if (($locations = get_nav_menu_locations()) && isset($locations['top-bar-1'])) { // $menu = wp_get_nav_menu_object($locations['top-bar-1']); // } - if(is_page(195) || 195 == $post->post_parent || is_in_tree(195)){ + if(is_page(16) || 16 == $post->post_parent || is_in_tree(16)){ if (($locations = get_nav_menu_locations()) && isset($locations['boards'])) { $menu = wp_get_nav_menu_object($locations['boards']); } } - if(is_page(197) || 197 == $post->post_parent || is_in_tree(197)){ + if(is_page(18) || 18 == $post->post_parent || is_in_tree(18)){ if (($locations = get_nav_menu_locations()) && isset($locations['departments'])) { $menu = wp_get_nav_menu_object($locations['departments']); } } - if(is_page(199) || 199 == $post->post_parent || is_in_tree(199)){ + if(is_page(20) || 20 == $post->post_parent || is_in_tree(20)){ if (($locations = get_nav_menu_locations()) && isset($locations['calendar'])) { $menu = wp_get_nav_menu_object($locations['calendar']); } } - if(is_page(201) || 201 == $post->post_parent || is_in_tree(201)){ + if(is_page(24) || 24 == $post->post_parent || is_in_tree(24)){ if (($locations = get_nav_menu_locations()) && isset($locations['township'])) { $menu = wp_get_nav_menu_object($locations['township']); }