Buy me a coffee

How to adding Product Categories to Header Navigation

You can follow these steps to adding product categories to header navigation.
#A. Adding Product Categories to Main Navigation
First, click on Gear icon in Shop Page

How To Adding Product Categories To Header Navigation 1 Min

Next, click Categories, you will see all product categories on right side

How To Adding Product Categories To Header Navigation 2 Min

Next, hover on a category > Click 3 dots > Edit

How To Adding Product Categories To Header Navigation 3 Min

Next, click on “ADD TO YOUR MAIN NAVIGATION

How To Adding Product Categories To Header Navigation 4 Min

#B. Adding Product Categories to Dropdown Folder
First, click on Gear icon on Shop Page

How To Adding Product Categories To Header Navigation 5 Min

Find URL Slug. We will have: /shop

How To Adding Product Categories To Header Navigation 6 Min

Next, open Shop Page and click on each category to find URL of Product Categories.
We will have

  • /shop/bike
  • /shop/design
  • /shop/example

How To Adding Product Categories To Header Navigation 7 Min

Next, in Main Navigation > Click Plus icon > Choose Dropdown

How To Adding Product Categories To Header Navigation 8

Name it “Shop”

How To Adding Product Categories To Header Navigation 9 Min

Next, click ADD Page > Choose Link

How To Adding Product Categories To Header Navigation 10

Enter Product Category Name/URL (you have in previous step)

How To Adding Product Categories To Header Navigation 11 Min

How To Adding Product Categories To Header Navigation 12 Min

You will have

How To Adding Product Categories To Header Navigation 13 Min

Result

How To Adding Product Categories To Header Navigation 14 Min

Note: You won’t click “Shop” title. To make this clickable to Portfolio Page. You can use this code to Code Injection > Footer.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
        $('div.header-nav-item>a[href="/shop2"]').click(function() {
            var link = $(this).text(),
                href = "/shop";
            window.location.href=href;
        });
});
</script>

How To Adding Product Categories To Header Navigation 15 Min