I would link to remove all the layered navigation filters from left side of Magento 2, using xml Please guide me

  • Can anybody provide a full list of referanceContainer names that can be removed/positioned – Rhys Woosnam Nov 21 '19 at 15:05

Add this to your theme default.xml

<referenceBlock name="catalog.leftnav" remove="true" />


Add this on Admin Panel > Products > Categories > YOUR PAGE > Design

<referenceContainer name="catalog.leftnav" remove="true" />

enter image description here



You can do this by just admin category settings.

In admin panel of your Magento, go to Products > Categories, then select the category on the left.

Now on the right side, select Display Settings tab, and from the settings that appear make sure that the Is Anchor option is set to No.

Do this for all categories you want to hide Layered navigation from. Clear Cache and do re-index if required.

  • @parasarora1303: Does this helps to solve ? – Anil Suthar Jul 28 '16 at 12:12

To remove layered navigation from search

<referenceBlock name="catalogsearch.leftnav" remove="true" />

To remove this via Layout Update XML in the CMS (Products > Categories > Design) use

<referenceContainer name="catalog.leftnav" remove="true" />

Note it has to be referenceContainer and not referenceBlock when used here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.