Magento 2 Remove link from left navigation in my account Section
up vote
2
down vote
favorite
I have removed some link from left navigation in My account section and its removed successfully but getting space between links after removing the links.
I have used below code to remove unusual link
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
Please refer to below screenshot:
As in attached screenshot there is an space after My Order and account information.
Please let me know what is best way to remove links so space is also removed.
magento2 navigation
add a comment |
up vote
2
down vote
favorite
I have removed some link from left navigation in My account section and its removed successfully but getting space between links after removing the links.
I have used below code to remove unusual link
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
Please refer to below screenshot:
As in attached screenshot there is an space after My Order and account information.
Please let me know what is best way to remove links so space is also removed.
magento2 navigation
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have removed some link from left navigation in My account section and its removed successfully but getting space between links after removing the links.
I have used below code to remove unusual link
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
Please refer to below screenshot:
As in attached screenshot there is an space after My Order and account information.
Please let me know what is best way to remove links so space is also removed.
magento2 navigation
I have removed some link from left navigation in My account section and its removed successfully but getting space between links after removing the links.
I have used below code to remove unusual link
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
Please refer to below screenshot:
As in attached screenshot there is an space after My Order and account information.
Please let me know what is best way to remove links so space is also removed.
magento2 navigation
magento2 navigation
asked Dec 6 at 6:59
akgola
1,310515
1,310515
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Try the below code instead of yours:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-1" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-2" remove="true"/>
</body>
</page>
I have added 2 lines which is called delimiter which are added by magento2 itself. You can add/remove those according to your requirement.
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
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',
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%2f252608%2fmagento-2-remove-link-from-left-navigation-in-my-account-section%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
up vote
2
down vote
accepted
Try the below code instead of yours:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-1" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-2" remove="true"/>
</body>
</page>
I have added 2 lines which is called delimiter which are added by magento2 itself. You can add/remove those according to your requirement.
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
add a comment |
up vote
2
down vote
accepted
Try the below code instead of yours:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-1" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-2" remove="true"/>
</body>
</page>
I have added 2 lines which is called delimiter which are added by magento2 itself. You can add/remove those according to your requirement.
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Try the below code instead of yours:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-1" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-2" remove="true"/>
</body>
</page>
I have added 2 lines which is called delimiter which are added by magento2 itself. You can add/remove those according to your requirement.
Try the below code instead of yours:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-1" remove="true"/>
<referenceBlock name="customer-account-navigation-delimiter-2" remove="true"/>
</body>
</page>
I have added 2 lines which is called delimiter which are added by magento2 itself. You can add/remove those according to your requirement.
answered Dec 6 at 7:37
Sukumar Gorai
5,8913527
5,8913527
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
add a comment |
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
Hello @sukumar ,its working as expected .Now I want to interchange position Account information and My order.I have already used move element but it is not working.Please let me know how to achieve it?
– akgola
Dec 6 at 7:42
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
This is a different question. You can ask another question. Surely I ll help you.
– Sukumar Gorai
Dec 6 at 8:02
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f252608%2fmagento-2-remove-link-from-left-navigation-in-my-account-section%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