Showing results for 
Search instead for 
Did you mean: 

Remove subcategories from header navigation

Remove subcategories from header navigation

On website, the subcategories are appearing on the navigation bar. How can I remove them so that it doesn't do it?

When I edit subcategory and select "No" for Include in Navigation Menu, it will remove from the header but also remove it from page too.

I'm not sure why it's removing from both.


Re: Remove subcategories from header navigation

HI @nokkieny


Changing that setting to no is the correct thing to do. As for your categories page, it looks custom and if the category dissapears from there too then it must be using the same logic as the menu to get the categories. You would have to change that.




Problem solved? Click Accept as Solution! | Magento Small Business Partner

Re: Remove subcategories from header navigation

If you don't want to display any category in the main menu, you can also modify the following setting in the configuration:

Catalog -> Category Top Navigation -> Maximal Depth. By setting it to 1, no sub categories should be shown.

If this also affects the display on the category page, you'll have to change something in the implementation of that. As it seems to be custom, we cannot give you any advice on how to do that.

Andreas von Studnitz, Trainer, Consultant, Developer and CEO of integer_net, Germany.