I would like to remove the Invoices link from the customer account page in Magento 2:

enter image description here

I tried to search it in templates and layout files but no luck.

Someone know how to do?


Found it.

Create this file within your theme dir:


Then you can remove links with this:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    <referenceContainer name="content">

      <!-- <referenceBlock name="sales.order.info.links" remove="true" /> -->
      <!-- <referenceBlock name="sales.order.info.links.information" remove="true" /> -->
      <referenceBlock name="sales.order.info.links.invoice" remove="true" />
      <!-- <referenceBlock name="sales.order.info.links.creditmemo" remove="true" /> -->

| improve this answer | |
  • Might also be good to add this to sales_order_guest_info_links.xml – thaddeusmt Jan 24 '18 at 3:40

Write below code in given file path


<referenceBlock name="sales.order.info.links.invoice" remove="true" />
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.