I want to remove some of the navigation links in my account page so I have put the below code at the path:


<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" design_abstraction="custom">
    <referenceBlock name="customer-account-navigation-orders-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-wish-list-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-newsletter-subscriptions-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-product-reviews-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>

However, its not working. I have also tried in the core file, /vendor/magento/module-customer/view/frontend/layout/customer_account.xml. But still no luck. I have cleaned the cache and run all the commands.

It's working in local but having issue in the server. Is it something related to DB. If yes, where could be the issue?

Can anyone please help?

  • 1
    Your code seems correct.. on server which mode you are using ?if using production mode, need to deploy content as well...
    – Pawan
    Commented Apr 23, 2020 at 7:13
  • I have ran the deploy command as well.
    – MagentoDev
    Commented Apr 23, 2020 at 7:34
  • Also it's in developer mode only
    – MagentoDev
    Commented Apr 23, 2020 at 7:38
  • please check after removing your browser cach and run setup and delpoy command.
    – Msquare
    Commented Apr 23, 2020 at 7:39
  • @Msquare does it require run setup ? deploy command in developer ?
    – Pawan
    Commented Apr 23, 2020 at 7:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.