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 Sep 6 '17 at 19:43

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

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

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.


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


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.