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
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
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.
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
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.
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,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.
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,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 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