There are some menu items that are unnecessary for us. How can I remove them? Thanks.

  • Can you be more specific so we can help you easier? Are these chunks core to Magento? The answer could depend. They are not categories correct? – camdixon Jul 20 '16 at 3:57
  • For example, there is "Credit Memos" under Sales -> Operations, but it unnecessary for us. We want to remove it. Thanks. – Ricky.C Jul 20 '16 at 4:09

By using remove tag you can remove a menu item from admin menu.

Syntax should be <remove id="MENU_ITEM_ID" />

Suppose I want to remove Cms page section from menu, then I have to rewrite below code at menu.xml of my module.

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
    <remove id="Magento_Cms::cms_page" />

Magento_Cms::cms_page is menu id of cms page ,which is define at at vendor/magento/module-cms/etc/adminhtml/menu.xml .

| improve this answer | |

If item is category u can check option Include in Navigation Menu No in product->categories.

| improve this answer | |

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.