Magento 2. How to Remove Customer Account Navigation Links

This short guide will help you to find out how to hide the Customer Account Navigation Links.
To remove the sidebar link you can see on the customer account page do the following:

1. Go to your Magento installation folder.

zemez wordpress themes

2. Then open vendor\magento\module-customer\view\frontend\layout\ folder.

3. Copy the customer_account.xml file to the app\design\frontend\Zemez\themeXXX\Magento_Customer\layout\ folder.

XXX here is your theme number.

[notice type=”warning”]Note, the vendor name (Zemez) may be TemplateMonster or Jetimpex.

4. Open the copied file to edit (app\design\frontend\Zemez\themeXXX\Magento_Customer\layout\customer_account.xml )

If you have the customer_account.xml file under the app\design\frontend\Zemez\themeXXX\Magento_Customer\layout\ folder, you need to edit this file (it’s no need to paste the file you’ve copied).

 5. You should add the next code before the </body> tag. We will remove the My Wish List link, as an example.

You should get something like this:

6. Save the changes you’ve made to the file.

7. Clear the Magento cache.

The “My Wishlist” link will disappear from the Customer Account page.

customer-account-navigation-links-zemez-magento

You can remove any Customer Account Navigation Link. So, if you want to hide the “Newsletter Subscription” link, use the <referenceBlock name=customer-account-navigation-newsletter-subscriptions-link remove=true/> code.

 

monster one