0

I want to delete this dropdown list All category:

enter image description here

I saw a lot of answers how to disable category dropdown via xml, but not of them helped me. I will be grateful if someone will explain me how to use unsetChild-method or something like this. This is original code:

<reference name="header">
    <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
</reference>

I tried this one, but still no changes:

<reference name="header">
    <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml">
        <action method="unsetChild"><alias>category_filter</alias></action>
    </block>
</reference>
  • post your phtml code – Magento 2 Oct 19 '15 at 5:32
0

Using Template path hints from backend find the path to your file form.mini.phtmlusually it will be placed under app\design\frontend\yourpackage\yourtheme\template\catalogsearch\form.mini.phtmlthen delete the drop down list coding carefully.(If you not sure about coding create a backup copy of form.mini.phtml then try your tests)

If you simply want to hide dropdown listshowing on frontend only,use css display:none under specific .class on your respective stylesheet.

0

I think you have an extension, and you need to disable the extension. Try path hints and see the name, and then search in admin panel for that name and disable it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.