Do you want to know how to remove customer account links from magento 2 ?
Add below code in your extended default.xml file to remove Account tabs links.
app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml
Here is list of code to remove account tabs as needed. Will helpful to you and other users as well
- <referenceBlockname=”customer-account-navigation-address-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-downloadable-products-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-newsletter-subscriptions-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-billing-agreements-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-product-reviews-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-my-credit-cards-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-account-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-account-edit-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-orders-link”remove=”true”/>
- <referenceBlockname=”customer-account-navigation-wish-list-link”remove=”true”/>
2 ) Renaming Newsletter Subscriptions
Copy customer_account.xml from
vendor/magento/module-newsletter/view/frontend/layout/customer_account.xml
To your extended module
app/design/frontend/vendorname/themename/Magento_Newsletter/layout/customer_account.xml
Let me know if any problem.
Keep cache disable while changing any XML file