add CMS page link category menu in Magento 2Adding a non-category link to the navigation links in magento 2Magento 2 - Adding a CMS page link to menuAdd CMS page links into Nav menu using local.xmlHow to add active state to CMS Page in Top Menu?In Magento2, I want to add cms page link in header top menu before wishlist linkMagento 2.1.8 - Menu not showing on CMS pagesHow to add custom link in main menu in magento 2?what is the difference between cms page link and cms static block. Catalog product link and catalog category linkMagento 2 How to add Home link in navigation bar!Magento2 add a cms page link to menuAdd Category to breadcrumbs Magento 2Add link before Catalog Main Menu

A planet illuminated by a black hole?

Using "Kollege" as "university friend"?

Character is called by their first initial. How do I write it?

Passing lines from the text file of a list of files to or as arguments

Determine if a triangle is equilateral, isosceles, or scalene

How can I receive packages while in France?

401(k) investment after being fired. Do I own it?

Why no ";" after "do" in sh loops?

Terence Tao - type books in other fields?

Talk to manager when quitting my job

Do I need another Schengen Visa

Why is chess failing to attract big name sponsors?

Why are off grid solar setups only 12, 24, 48 VDC?

Monty Hall Problem with a Fallible Monty

Is the apartment I want to rent a scam?

How may I shorten this shell script?

Book about young girl who ends up in space after apocolypse

Why are angular mometum and angular velocity not necessarily parallel, but linear momentum and linear velocity are always parallel?

How can I create a shape in Illustrator which follows a path in descending order size?

What are the exact meanings of roll, pitch and yaw?

How do I run a game when my PCs have different approaches to combat?

Company messed up with patent and now a lawyer is coming after me

High income, sudden windfall

Why are there not any MRI machines available in Interstellar?



add CMS page link category menu in Magento 2


Adding a non-category link to the navigation links in magento 2Magento 2 - Adding a CMS page link to menuAdd CMS page links into Nav menu using local.xmlHow to add active state to CMS Page in Top Menu?In Magento2, I want to add cms page link in header top menu before wishlist linkMagento 2.1.8 - Menu not showing on CMS pagesHow to add custom link in main menu in magento 2?what is the difference between cms page link and cms static block. Catalog product link and catalog category linkMagento 2 How to add Home link in navigation bar!Magento2 add a cms page link to menuAdd Category to breadcrumbs Magento 2Add link before Catalog Main Menu






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








0















How to add cms page link category navigation menu Like



Example Like Home | About Us | Contact Us | Our Products



Please check screenshot



enter image description here










share|improve this question
























  • You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck

    – sami23
    May 7 '18 at 13:08











  • magento.stackexchange.com/questions/123669/…

    – Ravindrasinh Zala
    May 10 '18 at 9:22

















0















How to add cms page link category navigation menu Like



Example Like Home | About Us | Contact Us | Our Products



Please check screenshot



enter image description here










share|improve this question
























  • You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck

    – sami23
    May 7 '18 at 13:08











  • magento.stackexchange.com/questions/123669/…

    – Ravindrasinh Zala
    May 10 '18 at 9:22













0












0








0








How to add cms page link category navigation menu Like



Example Like Home | About Us | Contact Us | Our Products



Please check screenshot



enter image description here










share|improve this question
















How to add cms page link category navigation menu Like



Example Like Home | About Us | Contact Us | Our Products



Please check screenshot



enter image description here







magento2 navigation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 7 '18 at 11:16









Dhaval Solanki

1,4641 gold badge10 silver badges33 bronze badges




1,4641 gold badge10 silver badges33 bronze badges










asked May 7 '18 at 11:02









Ravindrasinh ZalaRavindrasinh Zala

1,3744 silver badges23 bronze badges




1,3744 silver badges23 bronze badges












  • You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck

    – sami23
    May 7 '18 at 13:08











  • magento.stackexchange.com/questions/123669/…

    – Ravindrasinh Zala
    May 10 '18 at 9:22

















  • You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck

    – sami23
    May 7 '18 at 13:08











  • magento.stackexchange.com/questions/123669/…

    – Ravindrasinh Zala
    May 10 '18 at 9:22
















You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck

– sami23
May 7 '18 at 13:08





You can check this answer : magento.stackexchange.com/questions/95017/…. Good luck

– sami23
May 7 '18 at 13:08













magento.stackexchange.com/questions/123669/…

– Ravindrasinh Zala
May 10 '18 at 9:22





magento.stackexchange.com/questions/123669/…

– Ravindrasinh Zala
May 10 '18 at 9:22










2 Answers
2






active

oldest

votes


















0














@Ravindrasinh Zala have you tried this link?



Adding a non-category link to the navigation links in magento 2






share|improve this answer






























    0














    Another alternative is to use a new template file via layout xml.




    ./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml




    <?xml version="1.0"?>
    <!--
    /**
    * Copyright info.
    */
    -->
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    <referenceBlock name="catalog.topnav">
    <block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
    </referenceBlock>
    </body>
    </page>


    Then use this template file to create link html.




    ./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml




    <?php
    /** @var MagentoFrameworkViewElementTemplate $block */
    ?>
    <li class="level0 level-top ui-menu-item">
    <a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
    <span><?= __("FAQ")?></span>
    </a>
    </li>
    <li class="level0 level-top ui-menu-item">
    <a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
    <span><?= __("Custom Designs")?></span>
    </a>
    </li>


    When you clear the layout and block_html caches, these will show in the menu.
    Note:



    • This way we won't touch the original topmenu.phtml

    • This will use topmenu.phtml's $block->getChildHtml() to render the output

    • In layout xmls if you ignore the class="" attribute for a block, then MagentoFrameworkViewElementTemplate class will be used by default.

    Hope that helps






    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%2f224971%2fadd-cms-page-link-category-menu-in-magento-2%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      @Ravindrasinh Zala have you tried this link?



      Adding a non-category link to the navigation links in magento 2






      share|improve this answer



























        0














        @Ravindrasinh Zala have you tried this link?



        Adding a non-category link to the navigation links in magento 2






        share|improve this answer

























          0












          0








          0







          @Ravindrasinh Zala have you tried this link?



          Adding a non-category link to the navigation links in magento 2






          share|improve this answer













          @Ravindrasinh Zala have you tried this link?



          Adding a non-category link to the navigation links in magento 2







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 8 '18 at 10:12









          sami23sami23

          4501 gold badge2 silver badges10 bronze badges




          4501 gold badge2 silver badges10 bronze badges























              0














              Another alternative is to use a new template file via layout xml.




              ./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml




              <?xml version="1.0"?>
              <!--
              /**
              * Copyright info.
              */
              -->
              <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
              <body>
              <referenceBlock name="catalog.topnav">
              <block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
              </referenceBlock>
              </body>
              </page>


              Then use this template file to create link html.




              ./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml




              <?php
              /** @var MagentoFrameworkViewElementTemplate $block */
              ?>
              <li class="level0 level-top ui-menu-item">
              <a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
              <span><?= __("FAQ")?></span>
              </a>
              </li>
              <li class="level0 level-top ui-menu-item">
              <a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
              <span><?= __("Custom Designs")?></span>
              </a>
              </li>


              When you clear the layout and block_html caches, these will show in the menu.
              Note:



              • This way we won't touch the original topmenu.phtml

              • This will use topmenu.phtml's $block->getChildHtml() to render the output

              • In layout xmls if you ignore the class="" attribute for a block, then MagentoFrameworkViewElementTemplate class will be used by default.

              Hope that helps






              share|improve this answer



























                0














                Another alternative is to use a new template file via layout xml.




                ./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml




                <?xml version="1.0"?>
                <!--
                /**
                * Copyright info.
                */
                -->
                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <body>
                <referenceBlock name="catalog.topnav">
                <block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
                </referenceBlock>
                </body>
                </page>


                Then use this template file to create link html.




                ./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml




                <?php
                /** @var MagentoFrameworkViewElementTemplate $block */
                ?>
                <li class="level0 level-top ui-menu-item">
                <a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
                <span><?= __("FAQ")?></span>
                </a>
                </li>
                <li class="level0 level-top ui-menu-item">
                <a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
                <span><?= __("Custom Designs")?></span>
                </a>
                </li>


                When you clear the layout and block_html caches, these will show in the menu.
                Note:



                • This way we won't touch the original topmenu.phtml

                • This will use topmenu.phtml's $block->getChildHtml() to render the output

                • In layout xmls if you ignore the class="" attribute for a block, then MagentoFrameworkViewElementTemplate class will be used by default.

                Hope that helps






                share|improve this answer

























                  0












                  0








                  0







                  Another alternative is to use a new template file via layout xml.




                  ./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml




                  <?xml version="1.0"?>
                  <!--
                  /**
                  * Copyright info.
                  */
                  -->
                  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                  <body>
                  <referenceBlock name="catalog.topnav">
                  <block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
                  </referenceBlock>
                  </body>
                  </page>


                  Then use this template file to create link html.




                  ./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml




                  <?php
                  /** @var MagentoFrameworkViewElementTemplate $block */
                  ?>
                  <li class="level0 level-top ui-menu-item">
                  <a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
                  <span><?= __("FAQ")?></span>
                  </a>
                  </li>
                  <li class="level0 level-top ui-menu-item">
                  <a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
                  <span><?= __("Custom Designs")?></span>
                  </a>
                  </li>


                  When you clear the layout and block_html caches, these will show in the menu.
                  Note:



                  • This way we won't touch the original topmenu.phtml

                  • This will use topmenu.phtml's $block->getChildHtml() to render the output

                  • In layout xmls if you ignore the class="" attribute for a block, then MagentoFrameworkViewElementTemplate class will be used by default.

                  Hope that helps






                  share|improve this answer













                  Another alternative is to use a new template file via layout xml.




                  ./app/design/frontend/Company/Yourtheme/Magento_Theme/layout/default.xml




                  <?xml version="1.0"?>
                  <!--
                  /**
                  * Copyright info.
                  */
                  -->
                  <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                  <body>
                  <referenceBlock name="catalog.topnav">
                  <block name="custom.menu.links" template="Magento_Theme::html/topmenu_custom.phtml"/>
                  </referenceBlock>
                  </body>
                  </page>


                  Then use this template file to create link html.




                  ./app/design/frontend/Company/Yourtheme/Magento_Theme/templates/html/topmenu_custom.phtml




                  <?php
                  /** @var MagentoFrameworkViewElementTemplate $block */
                  ?>
                  <li class="level0 level-top ui-menu-item">
                  <a href="<?php echo $this->getBaseUrl()."faq"; ?>" class="level-top ui-corner-all" role="menuitem">
                  <span><?= __("FAQ")?></span>
                  </a>
                  </li>
                  <li class="level0 level-top ui-menu-item">
                  <a href="<?php echo $this->getUrl('custom/index/index'); ?>" class="level-top ui-corner-all" role="menuitem">
                  <span><?= __("Custom Designs")?></span>
                  </a>
                  </li>


                  When you clear the layout and block_html caches, these will show in the menu.
                  Note:



                  • This way we won't touch the original topmenu.phtml

                  • This will use topmenu.phtml's $block->getChildHtml() to render the output

                  • In layout xmls if you ignore the class="" attribute for a block, then MagentoFrameworkViewElementTemplate class will be used by default.

                  Hope that helps







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 16 at 4:07









                  Dilhan MadurangaDilhan Maduranga

                  2032 silver badges7 bronze badges




                  2032 silver badges7 bronze badges



























                      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%2f224971%2fadd-cms-page-link-category-menu-in-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