How to display WooCommerce categories in your menu

In this article we will go through the steps required to show WooCommerce categories within your menu. For other WooCommerce integrations (such as displaying the cart total in your menu), see WooCommerce.

Step 1: Enable WooCommerce Categories

Go to Appearance > Menus and expand the “Screen Options” section at the top right of the page. Enable “Product categories” and “Product tags”.

Product categories and Product tags options in Screen Options

Step 2: Menu Setup

Create a Shop menu item then add your Product categories as sub menu items.

Product categories added as sub menu items of the Shop menu item

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:

Product category description copied to the menu item description

Save the menu.

Step 3: Mega Menu Setup

Hover over the “Shop” menu item and click the blue Mega Menu button. Set the “Sub Menu Display Mode” to “Mega Menu – Grid Layout” (see Mega Menus for more information about the grid layout).

The grid layout will be automatically populated with the sub menu items (in this case our product categories). Organise these items into 4 columns.

Shop menu item set to Mega Menu - Grid Layout with four columns

Our menu now looks like this on the front end:

Product categories displayed in a mega menu

Step 4: Adding Icons to the categories

In this step we’ll be adding custom icons to our WooCommerce menu items. This functionality is part of Max Mega Menu Pro. Users of the free plugin can choose Dashicons instead.

Hover over the “T-Shirts” menu item and click the blue Mega Menu button.

In the Settings tab, set the Icon Position to “Top” and save the settings.

Icon position set to Top on the Settings tab

In Icon tab, select a custom icon and set an appropriate size.

Custom icon selected on the Icon tab

Save the custom icon and repeat this step for the remaining product categories.

Once the icons have been added our menu looks like this:

Product categories with icons in the mega menu

Step 5: Styling the text

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 Mega Menu > Menu Themes > Mega Menus and scroll down to the “Second Level Menu Items” section. Here you can set the font options. Set “Align” to “Center”.

Second Level Menu Items font align set to Center in the theme editor

If you would prefer to set the styling for your items individually (without affecting other second level items within your menu), you can use Custom Item Styling.

The Result

Product categories with centered icons and text in the mega menu