Magento 2 : Top Navigation External LinkBest 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
Do higher dimensions have axes?
What's a German word for »Sandbagger«?
Why can't I hear fret buzz through the amp?
Why is Google approaching my VPS machine?
Does unblocking power bar outlets through short extension cords increase fire risk?
Making a Dataset that emulates `ls -tlra`?
Which failed attempts have there been to find a contradiction in ZFC or ZF?
Do Australia and New Zealand have a travel ban on Somalis (like Wikipedia says)?
Why aren't there any women super GMs?
Is encryption still applied if you ignore the SSL certificate warning for self-signed certs?
We get more abuse than anyone else
Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?
Transistor power dissipation rating
You have no, but can try for yes
What is this green alien supposed to be on the American covers of the "Hitchhiker's Guide to the Galaxy"?
How to tell readers that I know my story is factually incorrect?
What could make large expeditions ineffective for exploring territory full of dangers and valuable resources?
In this iconic lunar orbit rendezvous photo of John Houbolt, why do arrows #5 and #6 point the "wrong" way?
How to not confuse readers with simultaneous events?
Can error correction and detection be done without adding extra bits?
Diagram of Methods to Solve Differential Equations
Why teach C using scanf without talking about command line arguments?
May I use a railway velocipede on actively-used British railways?
Operation Unzalgo
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
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom: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
magento2 navigation toplinks
add a comment |
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
add a comment |
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
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
magento2 navigation toplinks
edited Apr 7 '17 at 13:25
Dhiren Vasoya
4,8805 gold badges19 silver badges47 bronze badges
4,8805 gold badges19 silver badges47 bronze badges
asked Apr 7 '17 at 12:18
guestguest
561 gold badge1 silver badge6 bronze badges
561 gold badge1 silver badge6 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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 !!
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 yourdefault.xml
file code @guest
– Mukesh Prajapati
Apr 10 '17 at 5:29
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 !!
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 yourdefault.xml
file code @guest
– Mukesh Prajapati
Apr 10 '17 at 5:29
add a comment |
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 !!
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 yourdefault.xml
file code @guest
– Mukesh Prajapati
Apr 10 '17 at 5:29
add a comment |
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 !!
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 !!
edited Apr 7 '17 at 13:52
answered Apr 7 '17 at 13:37
Mukesh PrajapatiMukesh Prajapati
1,3504 silver badges16 bronze badges
1,3504 silver badges16 bronze badges
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 yourdefault.xml
file code @guest
– Mukesh Prajapati
Apr 10 '17 at 5:29
add a comment |
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 yourdefault.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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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