How to remove the category filter from the Magento layered navigation

6 May 2015| Post by Graham

AuthorGraham

Magento’s Layered Navigation functionality can be problematic for your websites SEO, causing potential duplicate category pages.

To remove only the category filter, first navigate to your themes “catalog.xml” file and browse to the “catalog_category_layered” layout handle.

[newslettercta]

Change the following code :

[cc lang=”xml”]





[/cc]

To be :

[cc lang=”xml”]




category_filter




[/cc]

If you don’t want to lose the list of categories from the layered navigation, you could include them as their canonical links, the below code will accomplish that :

[cc lang=”xml”]





category_filter




[/cc]

Remember to flush your cache, this should then show the desired results next time you refresh the page.

Scroll