In Magento2.4.x how to hide categories from left side layered navigation on search result page only. Is there any setting/configuration or will have to do through code There is a configuration here Store -> Configuration -> Catalog -> Catalog But not specific to the search result page

enter image description here

1 Answer 1


you can override this file



and add this code

<referenceContainer name="sidebar.main" remove="true" />
<referenceBlock name="catalogsearch.leftnav" remove="true" />
<referenceContainer name="sidebar.additional" remove="true" />
  • This will remove the whole left sidebar, I want to remove the categories filter only.
    – ishaq
    Sep 10, 2021 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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