{"id":216732,"date":"2019-10-10T15:21:18","date_gmt":"2019-10-10T14:21:18","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/how-to-add-a-logout-link-menu-item-copy\/"},"modified":"2019-10-10T16:14:18","modified_gmt":"2019-10-10T15:14:18","slug":"how-to-display-woocommerce-categories-in-menu","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/how-to-display-woocommerce-categories-in-menu\/","title":{"rendered":"How to display WooCommerce categories in your menu"},"content":{"rendered":"<p>In this article we will go through the steps required to show WooCommerce categories within your menu.<\/p>\n<h3>Step 1: Enable WooCommerce Categories<\/h3>\n<p>Go to <em>Appearance &gt; Menus<\/em> and expand the &#8220;Screen Options&#8221; section at the top right of the page. Enable &#8220;Product categories&#8221; and &#8220;Product tags&#8221;.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216734\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options.png\" alt=\"Screenshot showing screen options on nav-menus.php page\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-screen-options-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<h3>Step 2: Menu Setup<\/h3>\n<p>Create a Shop menu item then add your Product categories as sub menu items.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216735\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu.png\" alt=\"Adding WooCommerce categories to a WordPress menu\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<p>If you have added a description to your Product categories, this will also be carried over to the menu item description when you add it to a menu. You may wish to remove the descriptions at this point:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216752\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-item-description-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<p>Save the menu.<\/p>\n<h3>Step 3: Mega Menu Setup<\/h3>\n<p>Hover over the &#8220;Shop&#8221; menu item and click the blue Mega Menu button. Set the &#8220;Sub Menu Display Mode&#8221; to &#8220;Mega Menu &#8211; Grid Layout&#8221;.<\/p>\n<p>The grid layout will be automatically populated with the sub menu items (in this case our product categories). Organise these items into 4 columns.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216736\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-megamenu-setup-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<p>Our menu now looks like this on the front end:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216737\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-mega-menu-frontend-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<h3>Step 4: Adding Icons to the categories<\/h3>\n<p>In this step we&#8217;ll be adding <a href=\"https:\/\/www.megamenu.com\/documentation\/custom-menu-icon\/\">custom icons<\/a> to our WooCommerce menu items. This functionality is part of <a href=\"https:\/\/www.megamenu.com\/upgrade\/\">Max Mega Menu Pro<\/a>. Users of the free plugin can choose dashicons instead.<\/p>\n<p>Hover over the &#8220;Nokia&#8221; menu item and click the blue Mega Menu button.<\/p>\n<p>In the Settings tab, set the Icon Position to &#8220;Top&#8221; and save the settings.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216744\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/megamenu-icon-position-top-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<p>In Icon tab, select a custom icon and set an appropriate size.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216741\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-category-add-custom-icon-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<p>Save the custom icon and repeat this step for the remaining product categories.<\/p>\n<p>Once the icons have been added our menu looks like this:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216745\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-with-icons-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<h3>Step 5: Styling the text<\/h3>\n<p>The text beneath each icon needs to be centered. We are using standard menu items to display the categories within the menu so we can use the options built into the Theme Editor. Go to <em>Mega Menu &gt; Menu Themes &gt; Mega Menus<\/em> and scroll down to the &#8220;Second Level Menu Items&#8221; section. Here you can set the font options.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216749\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/second-level-menu-items-font-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<p>If you would prefer to set the styling for your items individually (without affecting other second level items within your menu), you can use <a href=\"https:\/\/www.megamenu.com\/documentation\/item-styling\/\">Custom Item Styling<\/a>.<\/p>\n<h3>The Result<\/h3>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-216748\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/10\/woocommerce-categories-in-menu-final-50x32.png 50w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will go through the steps required to show WooCommerce categories within your menu. Step 1: Enable WooCommerce Categories Go to Appearance &gt; Menus and expand the &#8220;Screen Options&#8221; section at the top right of the page. Enable &#8220;Product categories&#8221; and &#8220;Product tags&#8221;. Step 2: Menu Setup&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[14],"ht-kb-tag":[],"class_list":["post-216732","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-faqs"],"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Tom Hemsley","author_link":"https:\/\/www.megamenu.com\/author\/megamenu\/"},"uagb_comment_info":0,"uagb_excerpt":"In this article we will go through the steps required to show WooCommerce categories within your menu. Step 1: Enable WooCommerce Categories Go to Appearance &gt; Menus and expand the &#8220;Screen Options&#8221; section at the top right of the page. Enable &#8220;Product categories&#8221; and &#8220;Product tags&#8221;. Step 2: Menu Setup...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/216732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/comments?post=216732"}],"version-history":[{"count":9,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/216732\/revisions"}],"predecessor-version":[{"id":216755,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/216732\/revisions\/216755"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=216732"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=216732"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=216732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}