fbpx

Ecommerce

How to remove the category filter from the Magento layered navigation

Graham

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.

Graham

Director / Developer

When Graham isn’t coding beautiful websites, you’ll find him playing guitar in his indie rock band or travelling the country in his campervan ⛰️

More posts by Graham

This website uses cookies to ensure you get the best experience on our website. Learn More

Got It