{"id":12916,"date":"2021-07-03T11:14:29","date_gmt":"2021-07-03T05:44:29","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=12916"},"modified":"2021-07-16T17:49:52","modified_gmt":"2021-07-16T12:19:52","slug":"add-admin-menu","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/magento-2\/add-admin-menu\/","title":{"rendered":"Magento 2 &#8211; How to Add Admin Menu"},"content":{"rendered":"<p>In this post I am going to explain How to add Admin Menu in Magento 2<\/p>\n<p>In Magento 2, we use the menu.xml to add the menu. Follow the steps to create Admin Menu in Magento 2.<\/p>\n<p><strong>Step 1:<\/strong> Create menu.xml on below path and add the below content.<\/p>\n<p>Path: <strong>app\/code\/&lt;vendor&gt;\/&lt;module&gt;\/etc\/adminhtml\/menu.xml<\/strong><\/p>\n<pre>&lt;?xml version=\"1.0\"?&gt;\r\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"..\/..\/..\/..\/Magento\/Backend\/etc\/menu.xsd\"&gt;\r\n&lt;menu&gt;\r\n\r\n&lt;\/menu&gt;\r\n&lt;\/config&gt;\r\n<\/pre>\n<p><strong>Step 2:<\/strong> Add Admin menu items<\/p>\n<pre>&lt;?xml version=\"1.0\"?&gt;\r\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"..\/..\/..\/..\/Magento\/Backend\/etc\/menu.xsd\"&gt;\r\n&lt;menu&gt;\r\n&lt;add id=\"Vendor_Module::parent\" title=\"Hiddentechies\" module=\"Vendor_Module\" sortOrder=\"70\" resource=\"Vendor_Module::parent\"\/&gt;\r\n&lt;add id=\"Vendor_Module::items\" title=\"Manage Items\" module=\"Vendor_Module\" sortOrder=\"10\" parent=\"Vendor_Module::parent\" action=\"module\/items\" resource=\"Vendor_Module::items\"\/&gt;\r\n&lt;add id=\"Vendor_Module::coniguration\" title=\"Configuration\" module=\"Vendor_Module\" sortOrder=\"20\" parent=\"Vendor_Module::parent\" action=\"adminhtml\/system_config\/edit\/section\/coniguration\" resource=\"Vendor_Module::coniguration\"\/&gt;\r\n&lt;\/menu&gt;\r\n&lt;\/config&gt;\r\n<\/pre>\n<p>In above example, we created a level-0 menu named &#8220;Hiddentechies&#8221; and two submenus named &#8220;Manage Items&#8221; and &#8220;Configuration&#8221;.<\/p>\n<p>That&#8217;s it.<\/p>\n<p>If you have any query about the above code then you can ask in the comment section below.<\/p>\n<p>Thank You.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post I am going to explain How to add Admin Menu in Magento 2 In Magento 2, we use the menu.xml to add the menu. Follow the steps to create Admin Menu in Magento 2. Step 1: Create menu.xml on below path and add the below content. Path: app\/code\/&lt;vendor&gt;\/&lt;module&gt;\/etc\/adminhtml\/menu.xml &lt;?xml version=&#8221;1.0&#8243;?&gt; &lt;config xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221;&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/magento-2\/add-admin-menu\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":10,"featured_media":12968,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[2296,2294,2295,10,2293,27],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/12916"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=12916"}],"version-history":[{"count":7,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/12916\/revisions"}],"predecessor-version":[{"id":13125,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/12916\/revisions\/13125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/12968"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=12916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=12916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=12916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}