cancel
Showing results for 
Search instead for 
Did you mean: 

Root category in menu

SOLVED

Root category in menu

Is there a way to use the root category in the nav menu?

I dont want all my individual categories listed in the main menu, but in a submenu of "categories". I will have loads of categories when i have populated my store and would rather have a tidy menu.

An example would be to have the main menu of "Home", "Categories", "About", "FAQ", "Contact" and when hovering over "Categories" the categories appear like the subcategories currently do. Is this possible?

 

I am using Magento 2.3.3

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Root category in menu

Hi @CSP_Alex ,

 

You need to re arrange the categories structure in admin and after that you can achieve the customisation which you want.

Current scenario: All categories are be in Default category.

New scenario: Create new category named as Category in Default Category and move all sub categories in this new category. Refer Screenshot.

 

After the changes, Do re-indexing and flush the cache.

 

Thanks!


Screenshot from 2020-04-25 18-14-55.png

---------

Problem solved? Click Accept as Solution!

View solution in original post

2 REPLIES 2

Re: Root category in menu

Hi @CSP_Alex ,

 

You need to re arrange the categories structure in admin and after that you can achieve the customisation which you want.

Current scenario: All categories are be in Default category.

New scenario: Create new category named as Category in Default Category and move all sub categories in this new category. Refer Screenshot.

 

After the changes, Do re-indexing and flush the cache.

 

Thanks!


Screenshot from 2020-04-25 18-14-55.png

---------

Problem solved? Click Accept as Solution!

Re: Root category in menu

Thanks, that works perfectly