Skip to content

Magento 2 – Category Layered navigation – Hide OR show selective category filters from the list of all subcategory filters

In magento layered navigation. There is a filter by category in category listing page. How can we show the selective filters up there?
I mean if there are:

  • Category 1
  • Category 2
  • Category 3

And i need to hide the specific category IDs to show up there. OR i want to show specific category in this filter how can we achieve it with best magento practices?

to achieve this do we need to have a customization OR it can be done somehow with the configurations? Please advise