- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Children of subcategories in menu.. How can i do?
By default, Magento 2 shows the subcategories as main menu items .. but is there a way that also shows the children of these?
My idea is to have 3 categories, for example X,Y and Z (which are shown in the menu) but also have a category called "All Products" that is the father of the previous ones and to be able to filter them on the page of the same category All Products
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Children of subcategories in menu.. How can i do?
@mauri_mono Can you please share the structure how you want to show categories on navigation.
Just share one example.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Children of subcategories in menu.. How can i do?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Children of subcategories in menu.. How can i do?
@mauri_mono Then in that case i am expecting "All Products" will be the parent categoery of Category X,Y,Z
Am i right?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Children of subcategories in menu.. How can i do?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Children of subcategories in menu.. How can i do?
@mauri_mono Yes you can do that.
You have to do some customisation in the TopMenu.php file which is responsible for creating the html of navigation.
Thanks