How to remove unnecessary customer account links in Magento 2?

/home/owner/Downloads/How to remove unnecessary customer account links in Magento 2_.jpg

Magento by default displays a huge list of customer account links on the customer account page.

Sometimes we need to customize this default links inclusion as not all links are needed.

There are some sort of requirements to remove some links which are unnecessary for the customers.

Often it’s needed to remove a couple of links, for example, My Product Reviews or Billing Agreements.

Default links on customer account screen :

  • Account Dashboard
  • Account Information
  • Address Book
  • My Downloadable Products
  • My Orders
  • Newsletter Subscriptions
  • Stored Payment Methods
  • My Product Reviews
  • Billing Agreements
  • My Wish List

Steps to How to remove navigational links :

Step 1: Create a custom extension or theme and override customer layout file. Create an extension and override the layout XML file

File Path : app/design/frontend/[Namespace]/[Theme]/Magento_Customer/layout/customer_account.xml

Step 2: Use a tag to remove any extra link from my account

Step 3: Clear cache and check the My Account page.

The link which we have removed using tag remove="true" will no longer be displayed on your “My account page”.

🙂 Happy Coding. Keep Liking & Sharing 💻

Tagged ,