0

Changing the Max Depth in the admin section does not apply to the frontend. Anyone has some qorkaround to display just the first level categories in the top menu?

  • Have you not just though about changing Show In Menu to No – Dava Gordon Sep 6 '17 at 19:43
0

As a workaround you can set in the default.xml in your theme Magento_Theme folder:

<referenceBlock name="catalog.topnav">
    <arguments>
        <argument name="columns_limit" xsi:type="string">1</argument>
    </arguments>
</referenceBlock>

With this you can determine the depth of the menu. Magento will still render the <ul></ul> but with some styling you can remove this.

still not the most beautiful solution, but will be fixed in future Magento releases.

-1

Not a solution but will be fixed in Magento 2.3.X As you can see here:

[https://github.com/magento/magento2/issues/7543][1]

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.