Hello Everyone,

In this blog, we will learn about how to Add Custom Admin Menu in Magento 2.

Magento gives a wide range of admin menu options although sometimes wants to add custom admin menu and submenu in the store admin sidebar.

Without wasting your time, let us guide you straight away. Follow the easy step given below to Add Custom Custom Admin Menu in Magento 2.

STEPS FOR ADD CUSTOM HEADER AND TOP LINK IN MAGENTO 2

Step 1: Create menu.xml file

app/code/Vendor/Extension/etc/adminhtml/menu.xml

<?xml version=”1.0″?>

<config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Backend:etc/menu.xsd”>

    <menu>

        <add id=”Vendor_Extension::magecurious” title=”Magecurious” module=”Vendor_Extension” sortOrder=”10″ resource=”Vendor_Extension::magecurious”/>

        <add id=”Vendor_Extension::addrecord” title=”Add Record” module=”Vendor_Extension” sortOrder=”10″ action=”helloworld/index/index” resource=”Vendor_Extension::addrecord” parent=”Vendor_Extension::magecurious”/>

        <add id=”Vendor_Extension::managerecord” title=”Manage Record” module=”Vendor_Extension” sortOrder=”10″ parent=”Vendor_Extension::magecurious” action=”helloworld/index/index” resource=”Vendor_Extension::managerecord”/>

    </menu>

</config>

Step 2: Finally run the below commands

$ php bin/magento setup:upgrade

$ php bin/magento cache:clean

$ php bin/magento cache:flush

Step 3: Output:

Custom Admin Menu

Final Thoughts:

So this was the easiest way which we have told you in this blog. This is how you can Add Custom Admin menu and submenu in Magento 2. Hope you liked the blog.

So quickly go to the comment box and tell me how you like this blog?

Stay tuned with us on our site to get new updates of Magento.

Thanks  for reading and visiting our site.

Leave a Reply

Your email address will not be published. Required fields are marked *