Magento 2 Remove link from left navigation in my account Section
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty{ margin-bottom:0;
}
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 1 hour ago
akgola
1,300515
1,300515
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
17 mins ago
add a comment |
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
17 mins ago
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
17 mins ago
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 22 mins ago
Sukumar Gorai
5,8163527
5,8163527
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
17 mins ago
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
17 mins ago
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
17 mins ago
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
17 mins ago
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