0

Site search results:

These cats are not needed to show here as they show in properly below them (in the attributes). I have made them 'non active' in the category sections all bar the product type, phone type and manufacturer as they are in the navigation menu. Is there a way to get rid of these 3 remaining cats from the side narrow down whilst keeping them the nav at the top of the site?

Thanks

enter image description here

1 Answer 1

0

As I understand it the objective is to remove the Category section from the Layered navigation sidebar completely? If so you can simply remove the block from the page completely by putting the following into your themes local.xml file.

<catalog_category_layered>
    <reference name="catalog.leftnav">  
        <action method="unsetChild"><alias>category_filter</alias></action>
    </reference>
</catalog_category_layered>

UPDATE: To remove from the search results page, simply use a different layout handle:

<catalogsearch_result_index>
    <reference name="catalog.leftnav">  
        <action method="unsetChild"><alias>category_filter</alias></action>
    </reference>
</catalogsearch_result_index>
2
  • Thanks for the reply @cags. I will need to retain the category section for normal nav, but need to remove it for Site Search results. Please see the bottom image above i have just added.
    – Vedder
    Commented Jan 8, 2015 at 14:52
  • I updated my answer. Commented Jan 8, 2015 at 14:55

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.