How to add Custom Menu item and submenu in navigation bar Magento 2?Adding a non-category link to the navigation links in magento 2Issues while developing vertical menu barHow to show Bar Navigation Menu Magento 2 Blank ThemeHow can I create a drop down menu for CMS pages in MagentoMagento Navigation Menu - Sub NavigationMagento 1.7 using category as Top Navigation at the same time sub-navigation to other menuhow to add a div in topmenu bar in magento?Magento 2 Custom Category Nav Submenuhow to call navigation bar in magento 2.2.6How to get category and subcategory in sidebar in same navigation bar magento 2How to make a navigation side bar with category and sub category Magento 2

The lexical root of the perfect tense forms differs from the lexical root of the infinitive form

What are the ramifications of setting ARITHABORT ON for all connections in SQL Server?

How does Howard Stark know this?

Is there a faster way to calculate Abs[z]^2 numerically?

Is a diamond sword feasible?

How to select certain lines (n, n+4, n+8, n+12...) from the file?

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech?

We are two immediate neighbors who forged our own powers to form concatenated relationship. Who are we?

Set a camera to free fall like a Rigid Body?

Is calcium chloride an acidic or basic salt?

Why do Thanos's punches not kill Captain America or at least cause some mortal injuries?

Thesis' "Future Work" section – is it acceptable to omit personal involvement in a mentioned project?

Ex-manager wants to stay in touch, I don't want to

Two researchers want to work on the same extension to my paper. Who to help?

Is it a Munchausen Number?

Was this a power play by Daenerys?

Can 'sudo apt-get remove [write]' destroy my Ubuntu?

Why is it so slow when assigning a concatenated string to a variable in python?

How can I answer high-school writing prompts without sounding weird and fake?

How to deal with inappropriate comments during interviews for academic positions?

Guns in space with bullets that return?

Can I do brevets (long distance rides) on my hybrid bike? If yes, how to start?

How are Core iX names like Core i5, i7 related to Haswell, Ivy Bridge?

Can you book a one-way ticket to the UK on a visa?



How to add Custom Menu item and submenu in navigation bar Magento 2?


Adding a non-category link to the navigation links in magento 2Issues while developing vertical menu barHow to show Bar Navigation Menu Magento 2 Blank ThemeHow can I create a drop down menu for CMS pages in MagentoMagento Navigation Menu - Sub NavigationMagento 1.7 using category as Top Navigation at the same time sub-navigation to other menuhow to add a div in topmenu bar in magento?Magento 2 Custom Category Nav Submenuhow to call navigation bar in magento 2.2.6How to get category and subcategory in sidebar in same navigation bar magento 2How to make a navigation side bar with category and sub category Magento 2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am struggling to add a non-category custom menu in the navigation bar and also a sub-menu. Please help. Thanks.










share|improve this question
























  • You can use as metioned in magento.stackexchange.com/questions/95017/…

    – Kishan Patadia
    Feb 16 '18 at 5:37











  • I managed to add a link in the navigation bar. But how do i add submenu item now?

    – Mudz7
    Feb 16 '18 at 6:14

















0















I am struggling to add a non-category custom menu in the navigation bar and also a sub-menu. Please help. Thanks.










share|improve this question
























  • You can use as metioned in magento.stackexchange.com/questions/95017/…

    – Kishan Patadia
    Feb 16 '18 at 5:37











  • I managed to add a link in the navigation bar. But how do i add submenu item now?

    – Mudz7
    Feb 16 '18 at 6:14













0












0








0








I am struggling to add a non-category custom menu in the navigation bar and also a sub-menu. Please help. Thanks.










share|improve this question
















I am struggling to add a non-category custom menu in the navigation bar and also a sub-menu. Please help. Thanks.







magento2 topmenu submenu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 '18 at 11:50









Piyush

4,86472054




4,86472054










asked Feb 16 '18 at 5:30









Mudz7Mudz7

213




213












  • You can use as metioned in magento.stackexchange.com/questions/95017/…

    – Kishan Patadia
    Feb 16 '18 at 5:37











  • I managed to add a link in the navigation bar. But how do i add submenu item now?

    – Mudz7
    Feb 16 '18 at 6:14

















  • You can use as metioned in magento.stackexchange.com/questions/95017/…

    – Kishan Patadia
    Feb 16 '18 at 5:37











  • I managed to add a link in the navigation bar. But how do i add submenu item now?

    – Mudz7
    Feb 16 '18 at 6:14
















You can use as metioned in magento.stackexchange.com/questions/95017/…

– Kishan Patadia
Feb 16 '18 at 5:37





You can use as metioned in magento.stackexchange.com/questions/95017/…

– Kishan Patadia
Feb 16 '18 at 5:37













I managed to add a link in the navigation bar. But how do i add submenu item now?

– Mudz7
Feb 16 '18 at 6:14





I managed to add a link in the navigation bar. But how do i add submenu item now?

– Mudz7
Feb 16 '18 at 6:14










3 Answers
3






active

oldest

votes


















0














Please find the below code for Main menu and submenus.



<?xml version = "1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
<menu>
<!--Main Menu-->
<update id="Arise_Extensions::menu" title="Arise Extensions" module="Arise_Contact" sortOrder="10"
resource="Arise_Extensions::menu"/>
<!-- Sub Section 1 -->
<add id="Arise_Contact::contacts_manager" title="Arise Contacts" module="Arise_Contact" sortOrder="10"
parent="Arise_Extensions::menu" dependsOnModule="Arise_Contact"
resource="Arise_Contact::contacts_manager"/>
<!-- Sub Section 1 Links-->
<add id="Arise_Contact::manage_contacts" title="Manage Contacts" module="Arise_Contact" sortOrder="10"
parent="Arise_Contact::contacts_manager" action="Arise_contacts/manage_contacts"
resource="Arise_Contact::manage_contacts"/>
<add id="Arise_Contact::Arise_contacts_settings" title="Manage Contact Settings" module="Arise_Contact"
sortOrder="20" parent="Arise_Contact::contacts_manager"
action="adminhtml/system_config/edit/section/Arise_contacts"
resource="Arise_Contact::Arise_contacts_settings"/>
<!--/Sub Section 1 Links-->
</menu>
</config>





share|improve this answer

























  • I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

    – Mudz7
    Feb 16 '18 at 6:13


















0














one alternative solution is that



create one new category and assign cms block to it



and add cms page code to that cms block



everything works as per you needed.






share|improve this answer






























    0














    You can try this way:-



    Extend this file from core:-



    app/design/frontend/<vendor_name>/<theme_name>/Magento_Theme/templates/html/topmenu.phtml

    <nav class="navigation" data-action="navigation">
    <ul data-mage-init='"menu":"responsive":true, "expanded":true, "position":"my":"left top","at":"left bottom"'>
    <?php /* @escapeNotVerified */ echo $_menu; ?>
    <?php /* @escapeNotVerified */ echo $block->getChildHtml(); ?>
    <li>Test menu</li>
    </ul>
    </nav>


    It will add a menu in the end.






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f213739%2fhow-to-add-custom-menu-item-and-submenu-in-navigation-bar-magento-2%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Please find the below code for Main menu and submenus.



      <?xml version = "1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
      <menu>
      <!--Main Menu-->
      <update id="Arise_Extensions::menu" title="Arise Extensions" module="Arise_Contact" sortOrder="10"
      resource="Arise_Extensions::menu"/>
      <!-- Sub Section 1 -->
      <add id="Arise_Contact::contacts_manager" title="Arise Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Extensions::menu" dependsOnModule="Arise_Contact"
      resource="Arise_Contact::contacts_manager"/>
      <!-- Sub Section 1 Links-->
      <add id="Arise_Contact::manage_contacts" title="Manage Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Contact::contacts_manager" action="Arise_contacts/manage_contacts"
      resource="Arise_Contact::manage_contacts"/>
      <add id="Arise_Contact::Arise_contacts_settings" title="Manage Contact Settings" module="Arise_Contact"
      sortOrder="20" parent="Arise_Contact::contacts_manager"
      action="adminhtml/system_config/edit/section/Arise_contacts"
      resource="Arise_Contact::Arise_contacts_settings"/>
      <!--/Sub Section 1 Links-->
      </menu>
      </config>





      share|improve this answer

























      • I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

        – Mudz7
        Feb 16 '18 at 6:13















      0














      Please find the below code for Main menu and submenus.



      <?xml version = "1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
      <menu>
      <!--Main Menu-->
      <update id="Arise_Extensions::menu" title="Arise Extensions" module="Arise_Contact" sortOrder="10"
      resource="Arise_Extensions::menu"/>
      <!-- Sub Section 1 -->
      <add id="Arise_Contact::contacts_manager" title="Arise Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Extensions::menu" dependsOnModule="Arise_Contact"
      resource="Arise_Contact::contacts_manager"/>
      <!-- Sub Section 1 Links-->
      <add id="Arise_Contact::manage_contacts" title="Manage Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Contact::contacts_manager" action="Arise_contacts/manage_contacts"
      resource="Arise_Contact::manage_contacts"/>
      <add id="Arise_Contact::Arise_contacts_settings" title="Manage Contact Settings" module="Arise_Contact"
      sortOrder="20" parent="Arise_Contact::contacts_manager"
      action="adminhtml/system_config/edit/section/Arise_contacts"
      resource="Arise_Contact::Arise_contacts_settings"/>
      <!--/Sub Section 1 Links-->
      </menu>
      </config>





      share|improve this answer

























      • I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

        – Mudz7
        Feb 16 '18 at 6:13













      0












      0








      0







      Please find the below code for Main menu and submenus.



      <?xml version = "1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
      <menu>
      <!--Main Menu-->
      <update id="Arise_Extensions::menu" title="Arise Extensions" module="Arise_Contact" sortOrder="10"
      resource="Arise_Extensions::menu"/>
      <!-- Sub Section 1 -->
      <add id="Arise_Contact::contacts_manager" title="Arise Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Extensions::menu" dependsOnModule="Arise_Contact"
      resource="Arise_Contact::contacts_manager"/>
      <!-- Sub Section 1 Links-->
      <add id="Arise_Contact::manage_contacts" title="Manage Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Contact::contacts_manager" action="Arise_contacts/manage_contacts"
      resource="Arise_Contact::manage_contacts"/>
      <add id="Arise_Contact::Arise_contacts_settings" title="Manage Contact Settings" module="Arise_Contact"
      sortOrder="20" parent="Arise_Contact::contacts_manager"
      action="adminhtml/system_config/edit/section/Arise_contacts"
      resource="Arise_Contact::Arise_contacts_settings"/>
      <!--/Sub Section 1 Links-->
      </menu>
      </config>





      share|improve this answer















      Please find the below code for Main menu and submenus.



      <?xml version = "1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
      <menu>
      <!--Main Menu-->
      <update id="Arise_Extensions::menu" title="Arise Extensions" module="Arise_Contact" sortOrder="10"
      resource="Arise_Extensions::menu"/>
      <!-- Sub Section 1 -->
      <add id="Arise_Contact::contacts_manager" title="Arise Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Extensions::menu" dependsOnModule="Arise_Contact"
      resource="Arise_Contact::contacts_manager"/>
      <!-- Sub Section 1 Links-->
      <add id="Arise_Contact::manage_contacts" title="Manage Contacts" module="Arise_Contact" sortOrder="10"
      parent="Arise_Contact::contacts_manager" action="Arise_contacts/manage_contacts"
      resource="Arise_Contact::manage_contacts"/>
      <add id="Arise_Contact::Arise_contacts_settings" title="Manage Contact Settings" module="Arise_Contact"
      sortOrder="20" parent="Arise_Contact::contacts_manager"
      action="adminhtml/system_config/edit/section/Arise_contacts"
      resource="Arise_Contact::Arise_contacts_settings"/>
      <!--/Sub Section 1 Links-->
      </menu>
      </config>






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 16 '18 at 5:58

























      answered Feb 16 '18 at 5:56









      SandeepSandeep

      363




      363












      • I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

        – Mudz7
        Feb 16 '18 at 6:13

















      • I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

        – Mudz7
        Feb 16 '18 at 6:13
















      I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

      – Mudz7
      Feb 16 '18 at 6:13





      I want to add the menu item in the home page navigation bar in the frontend, not in the backend. :)

      – Mudz7
      Feb 16 '18 at 6:13













      0














      one alternative solution is that



      create one new category and assign cms block to it



      and add cms page code to that cms block



      everything works as per you needed.






      share|improve this answer



























        0














        one alternative solution is that



        create one new category and assign cms block to it



        and add cms page code to that cms block



        everything works as per you needed.






        share|improve this answer

























          0












          0








          0







          one alternative solution is that



          create one new category and assign cms block to it



          and add cms page code to that cms block



          everything works as per you needed.






          share|improve this answer













          one alternative solution is that



          create one new category and assign cms block to it



          and add cms page code to that cms block



          everything works as per you needed.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 21 '18 at 11:33









          SandeepSandeep

          363




          363





















              0














              You can try this way:-



              Extend this file from core:-



              app/design/frontend/<vendor_name>/<theme_name>/Magento_Theme/templates/html/topmenu.phtml

              <nav class="navigation" data-action="navigation">
              <ul data-mage-init='"menu":"responsive":true, "expanded":true, "position":"my":"left top","at":"left bottom"'>
              <?php /* @escapeNotVerified */ echo $_menu; ?>
              <?php /* @escapeNotVerified */ echo $block->getChildHtml(); ?>
              <li>Test menu</li>
              </ul>
              </nav>


              It will add a menu in the end.






              share|improve this answer



























                0














                You can try this way:-



                Extend this file from core:-



                app/design/frontend/<vendor_name>/<theme_name>/Magento_Theme/templates/html/topmenu.phtml

                <nav class="navigation" data-action="navigation">
                <ul data-mage-init='"menu":"responsive":true, "expanded":true, "position":"my":"left top","at":"left bottom"'>
                <?php /* @escapeNotVerified */ echo $_menu; ?>
                <?php /* @escapeNotVerified */ echo $block->getChildHtml(); ?>
                <li>Test menu</li>
                </ul>
                </nav>


                It will add a menu in the end.






                share|improve this answer

























                  0












                  0








                  0







                  You can try this way:-



                  Extend this file from core:-



                  app/design/frontend/<vendor_name>/<theme_name>/Magento_Theme/templates/html/topmenu.phtml

                  <nav class="navigation" data-action="navigation">
                  <ul data-mage-init='"menu":"responsive":true, "expanded":true, "position":"my":"left top","at":"left bottom"'>
                  <?php /* @escapeNotVerified */ echo $_menu; ?>
                  <?php /* @escapeNotVerified */ echo $block->getChildHtml(); ?>
                  <li>Test menu</li>
                  </ul>
                  </nav>


                  It will add a menu in the end.






                  share|improve this answer













                  You can try this way:-



                  Extend this file from core:-



                  app/design/frontend/<vendor_name>/<theme_name>/Magento_Theme/templates/html/topmenu.phtml

                  <nav class="navigation" data-action="navigation">
                  <ul data-mage-init='"menu":"responsive":true, "expanded":true, "position":"my":"left top","at":"left bottom"'>
                  <?php /* @escapeNotVerified */ echo $_menu; ?>
                  <?php /* @escapeNotVerified */ echo $block->getChildHtml(); ?>
                  <li>Test menu</li>
                  </ul>
                  </nav>


                  It will add a menu in the end.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 29 '18 at 18:55









                  Rajbir SinghRajbir Singh

                  267




                  267



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f213739%2fhow-to-add-custom-menu-item-and-submenu-in-navigation-bar-magento-2%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form