{"id":1667,"date":"2021-03-26T02:34:09","date_gmt":"2021-03-26T02:34:09","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/remove-layered-navigation-from-category-page-in-magento-2\/"},"modified":"2025-05-22T10:47:43","modified_gmt":"2025-05-22T05:17:43","slug":"remove-layered-navigation-from-category-page-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/remove-layered-navigation-from-category-page-in-magento-2\/","title":{"rendered":"How to Remove Layered Navigation from Category Page in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/configure-layered-navigation-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">Layered Navigation in Magento 2<\/a>&nbsp;is one of the useful features that lets your customers search items easily and quickly based on category, price, and product attributes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It generally appears in the left column of Magento 2 category pages and the search results pages. Layered navigation enhances the on-site experience for your customers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Admin generally needs to perform various operations and customizations on layered navigation based on business requirements, such as&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/remove-filterable-attribute-values-with-0-products-from-magento-2-layered-navigation\/\" target=\"_blank\" rel=\"noreferrer noopener\">removing filterable attribute values with 0 products from Magento 2 layered navigation<\/a>&nbsp;or altogether&nbsp;<em><strong>remove layered navigation from category page in Magento 2<\/strong><\/em>&nbsp;based on the design or theme of the store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you have products for which category-based classification does not matter or when the landing page is more critical than the category page, removing the layered navigation can be considered.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are offering software products such as&nbsp;<a href=\"https:\/\/meetanshi.com\/magento-2-extensions.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 extensions<\/a>, or any related services that don\u2019t need category-wise searching, the below solution can be useful.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is better to remove layered navigation instead of distracting users and adversely affecting the user experience in such situations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the below method to remove layered navigation based on the design layout requirement:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Remove Layered Navigation from Category Page in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use the below code in&nbsp;<strong>catalog_category_view.xml&nbsp;<\/strong>at&nbsp;<strong><strong>app\\design\\frontend\\[theme]\\Magento_Catalog\\layout<\/strong><\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\"?>\n\n&lt;page xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n      xsi:noNamespaceSchemaLocation=\"urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd\">\n    &lt;body>\n        &lt;referenceBlock name=\"catalog.leftnav\" remove=\"true\"\/>\n    &lt;\/body>\n&lt;\/page><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s all!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also remove specific attributes from the layered navigation in Magento 2. Refer to our blog post on How to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/add-or-remove-price-filter-in-magento-2-layered-navigation\/\" target=\"_blank\" rel=\"noreferrer noopener\">Add or Remove Price Filter in Layered Navigation in Magento 2<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the solution with Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank You.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Layered Navigation in Magento 2&nbsp;is one of the useful features that lets your customers search items easily and quickly based on category, price, and product&#8230;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1667","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1667"}],"version-history":[{"count":4,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1667\/revisions"}],"predecessor-version":[{"id":14419,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1667\/revisions\/14419"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}