How to remove the category filter from the Magento layered navigation

Graham Dodd
Graham Dodd
5 May 20151 min read
Updated 8 Nov 2023
How to remove the category filter from the Magento layered navigation

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”]

Catalog Category (Anchor)

[/cc]

To be :

[cc lang=”xml”]

Catalog Category (Anchor)

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”]

Catalog Category (Anchor)

category_filter

[/cc]

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

Graham Dodd
Written by

Graham Dodd

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.

View all posts

What our customers are saying

We're absolutely thrilled with the work Limely have done for us. Taking our website to the next level with Magento 2 was the best thing we ever did, we'll be continuing to work together for the foreseeable!

We are really pleased with our new website and the support and great service Limely have provided during the whole process. Not only are Limely excellent at what they do, but are a friendly, approachable team who put their clients' best interest at the forefront of their work.

The site itself looks great but the way that the whole team were prepared to go the extra mile, including helping me with the brilliantly-written content shows how much they care about their work. Thank-you to the whole team and I look forward to working with you again soon!

I was very pleased with the quality of the websites which Limely built for us. They took a complicated brief and created a bespoke solution which kept everything as simple as possible. The team are a pleasure to work with and I wouldn't hesitate in working with them again for future projects. An excellent web agency.

Our brief was a custom website, with lots of complicated functions along the way, and Limely have smashed it and built us an amazing website. Would 100% recommend to anyone looking to have a new website created, their knowledge, experience and professionalism is the best.

What can I say... the guys at Limely are a dream to work with! Not only have they made our website something to be incredibly proud of but we have made some fab friends in them! Thank you so much for everything!

Paul Hambidge

Paul Hambidge

Factory Direct Flooring

Ready to start your success journey?

Niko Moustoukas

Get in touch today to book a meeting

Get started