How can I disable "my account" and "my dashboard" in magento?

We also don't want the link of "my account" in the top links beside log out/cart .


T0 remove My Account link in My account Dashboard section you need to edit below file


and add below code

<!-- Account link -->
<referenceBlock name="customer-account-navigation-account-link" remove="true"/>

To remove My account link from top link you need to edit default.xml file in your theme and add below code


<referenceBlock name="top.links">
    <referenceBlock name="my-account-link" remove="true" />         <!--for My Account Link-->

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.