Remove the shop dropdown Categories title and Cart links
authorLaury GvR <laury@gaslightmedia.com>
Wed, 27 Feb 2019 21:08:43 +0000 (16:08 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 27 Feb 2019 21:08:43 +0000 (16:08 -0500)
lib/menu-walker.php

index bb7e7c9..dbef113 100644 (file)
@@ -37,11 +37,13 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
             global $woocommerce;
             $wooCategories = do_shortcode('[product_categories number="" orderby="name" order="asc" columns="1" hide_empty="0" parent="0" ids=""]');
             $item_html .= '<ul class="sub-menu dropdown">
-                <li><a href="'. get_permalink( wc_get_page_id( 'shop' ) ) .'">Categories</a></li>
-                <li>' . $wooCategories . '</li>
-                <li><a href="'. get_permalink( wc_get_page_id( 'cart' ) ) .'">Cart</a></li>
-                <li><a href="'. get_permalink( wc_get_page_id( 'checkout' ) ) .'">Checkout</a></li>
-                <li><a href="'. get_permalink( wc_get_page_id( 'myaccount' ) ) .'">My Account</a></li></ul>';
+                <li>' . $wooCategories . '</li>';
+
+                // <li><a href="'. get_permalink( wc_get_page_id( 'shop' ) ) .'">Categories</a></li>
+                // <li>' . $wooCategories . '</li>
+                // <li><a href="'. get_permalink( wc_get_page_id( 'cart' ) ) .'">Cart</a></li>
+                // <li><a href="'. get_permalink( wc_get_page_id( 'checkout' ) ) .'">Checkout</a></li>
+                // <li><a href="'. get_permalink( wc_get_page_id( 'myaccount' ) ) .'">My Account</a></li></ul>';
             
         }