In this tutorial we will learn about a method in magento 2,Magento 2 remove layered navigation.Before starting the example i suppose you are familiar with magento 2 and are an advanced learner. If you are a beginner please start from the beginning.
Lets come to our topic.
Removing all categories
If you want to remove all the categories then add this code in your default.xml and add this to your theme or module.
Removing single category
Furthermore if you want to do this for single category you can do that from admin panel.For that,login to admin panel and then go to
Admin Panel > Products > Categories > YOUR PAGE > Design
and add the following xml.
That’s it from this tutorial. I hope it has help you in learning.
Give A Rating
Average Rating / 5. Vote Count