Magento 2 : Top Navigation External LinkBest way to add On Sale link in top navigationAdd new links to top...

(Codewars) Linked Lists-Sorted Insert

How to copy the rest of lines of a file to another file

What would be the most expensive material to an intergalactic society?

Should we avoid writing fiction about historical events without extensive research?

Why does Central Limit Theorem break down in my simulation?

Too soon for a plot twist?

Smooth vector fields on a surface modulo diffeomorphisms

PTIJ: Who was the sixth set of priestly clothes for?

Short scifi story where reproductive organs are converted to produce "materials", pregnant protagonist is "found fit" to be a mother

Why is there an extra space when I type "ls" on the Desktop?

Would those living in a "perfect society" not understand satire

I am the person who abides by rules, but breaks the rules. Who am I?

Can one live in the U.S. and not use a credit card?

Do black holes violate the conservation of mass?

Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?

Writing text next to a table

How do we create new idioms and use them in a novel?

Trocar background-image com delay via jQuery

Cycles on the torus

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

Is there stress on two letters on the word стоят

3.5% Interest Student Loan or use all of my savings on Tuition?

Traveling to heavily polluted city, what practical measures can I take to minimize impact?



Magento 2 : Top Navigation External Link


Best way to add On Sale link in top navigationAdd new links to top links in Magento 1.9Add custom link fields in header tab in magento 2How to add link to homepage in top menu? (Magento 2)Magento 2 Navigation Menu not showingtop link edit Luma magento 2Magento2: How do I remove 'My Orders' in Luma sidebaradding bootstrap to magento 2always show My Account & Wish List user logged in or notMagento 2: Include header and footer in external php













0















I need to add custom nav link directing to an external site (http://etc) in my top nav. Admin won't let me do this. Running locally on mac web server.



V 2.0.13 Luma child theme



Thanks










share|improve this question
















bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I need to add custom nav link directing to an external site (http://etc) in my top nav. Admin won't let me do this. Running locally on mac web server.



    V 2.0.13 Luma child theme



    Thanks










    share|improve this question
















    bumped to the homepage by Community 1 min ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I need to add custom nav link directing to an external site (http://etc) in my top nav. Admin won't let me do this. Running locally on mac web server.



      V 2.0.13 Luma child theme



      Thanks










      share|improve this question
















      I need to add custom nav link directing to an external site (http://etc) in my top nav. Admin won't let me do this. Running locally on mac web server.



      V 2.0.13 Luma child theme



      Thanks







      magento2 navigation toplinks






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 7 '17 at 13:25









      Dhiren Vasoya

      4,37751843




      4,37751843










      asked Apr 7 '17 at 12:18









      guestguest

      56116




      56116





      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Do following steps:



          go to root directoryappdesignfrontendnamespacethemeMagento_Themelayout



          and open default.xml file



          Add below code in default.xml file before body tag end to add link in top links



          <referenceBlock name="top.links">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="top-links-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          Add below code in default.xml file before body tag end to add link in top menu



          <referenceBlock name="catalog.topnav">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="catalog-menu-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          like this:




          https://www.screencast.com/t/h3qLV5FUw




          hope it will help !!






          share|improve this answer


























          • I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

            – guest
            Apr 8 '17 at 6:50











          • Please send me your default.xml file code @guest

            – Mukesh Prajapati
            Apr 10 '17 at 5:29











          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%2f168157%2fmagento-2-top-navigation-external-link%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Do following steps:



          go to root directoryappdesignfrontendnamespacethemeMagento_Themelayout



          and open default.xml file



          Add below code in default.xml file before body tag end to add link in top links



          <referenceBlock name="top.links">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="top-links-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          Add below code in default.xml file before body tag end to add link in top menu



          <referenceBlock name="catalog.topnav">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="catalog-menu-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          like this:




          https://www.screencast.com/t/h3qLV5FUw




          hope it will help !!






          share|improve this answer


























          • I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

            – guest
            Apr 8 '17 at 6:50











          • Please send me your default.xml file code @guest

            – Mukesh Prajapati
            Apr 10 '17 at 5:29
















          0














          Do following steps:



          go to root directoryappdesignfrontendnamespacethemeMagento_Themelayout



          and open default.xml file



          Add below code in default.xml file before body tag end to add link in top links



          <referenceBlock name="top.links">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="top-links-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          Add below code in default.xml file before body tag end to add link in top menu



          <referenceBlock name="catalog.topnav">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="catalog-menu-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          like this:




          https://www.screencast.com/t/h3qLV5FUw




          hope it will help !!






          share|improve this answer


























          • I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

            – guest
            Apr 8 '17 at 6:50











          • Please send me your default.xml file code @guest

            – Mukesh Prajapati
            Apr 10 '17 at 5:29














          0












          0








          0







          Do following steps:



          go to root directoryappdesignfrontendnamespacethemeMagento_Themelayout



          and open default.xml file



          Add below code in default.xml file before body tag end to add link in top links



          <referenceBlock name="top.links">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="top-links-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          Add below code in default.xml file before body tag end to add link in top menu



          <referenceBlock name="catalog.topnav">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="catalog-menu-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          like this:




          https://www.screencast.com/t/h3qLV5FUw




          hope it will help !!






          share|improve this answer















          Do following steps:



          go to root directoryappdesignfrontendnamespacethemeMagento_Themelayout



          and open default.xml file



          Add below code in default.xml file before body tag end to add link in top links



          <referenceBlock name="top.links">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="top-links-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          Add below code in default.xml file before body tag end to add link in top menu



          <referenceBlock name="catalog.topnav">
          <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="catalog-menu-custom-link" before="-">
          <arguments>
          <argument name="label" xsi:type="string">Menu name</argument>
          <argument name="path" xsi:type="string">url</argument>
          </arguments>
          </block>
          </referenceBlock>


          like this:




          https://www.screencast.com/t/h3qLV5FUw




          hope it will help !!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 7 '17 at 13:52

























          answered Apr 7 '17 at 13:37









          Mukesh PrajapatiMukesh Prajapati

          1,234415




          1,234415













          • I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

            – guest
            Apr 8 '17 at 6:50











          • Please send me your default.xml file code @guest

            – Mukesh Prajapati
            Apr 10 '17 at 5:29



















          • I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

            – guest
            Apr 8 '17 at 6:50











          • Please send me your default.xml file code @guest

            – Mukesh Prajapati
            Apr 10 '17 at 5:29

















          I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

          – guest
          Apr 8 '17 at 6:50





          I gave that a shot but it's still not showing. Flushed my cache. Do I need to do something in my admin too?

          – guest
          Apr 8 '17 at 6:50













          Please send me your default.xml file code @guest

          – Mukesh Prajapati
          Apr 10 '17 at 5:29





          Please send me your default.xml file code @guest

          – Mukesh Prajapati
          Apr 10 '17 at 5:29


















          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%2f168157%2fmagento-2-top-navigation-external-link%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

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...