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
1












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:



enter image description here



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.










share|improve this question




























    up vote
    2
    down vote

    favorite
    1












    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:



    enter image description here



    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.










    share|improve this question
























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      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:



      enter image description here



      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.










      share|improve this question













      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:



      enter image description here



      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 59 mins ago









      akgola

      1,300515




      1,300515






















          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.






          share|improve this answer





















          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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.






          share|improve this answer





















          • 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















          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.






          share|improve this answer





















          • 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













          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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


















          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.





          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.




          draft saved


          draft discarded














          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





















































          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

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局