So I'm attempting to remove these sections of the Account page, i'm unable to find the reference block can someone help? enter image description here

  • you only want to remove on Account Dashboard or on every link in sidebar
    – Waqar Ali
    Commented Jan 10, 2020 at 12:50
  • Just the sidebar "My Orders" and "Recently Ordered" - Along with Recent Orders under the Address Book.
    – user85430
    Commented Jan 10, 2020 at 12:52

1 Answer 1


Please use below code in your default.xml file of your theme

<?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">
        <referenceBlock name="sale.reorder.sidebar" remove="true" />
        <referenceBlock name="customer_account_dashboard_top" remove="true" />


clean cache and check again !!

  • Can you confirm where this file is? I've tried editing it in the /customtheme/theme/Magento_Theme/layout/default.xml and it doesn't seem to do anything.
    – user85430
    Commented Jan 10, 2020 at 12:35
  • Please put file on this path /customtheme/theme/Magento_Sales/layout/default.xml Commented Jan 10, 2020 at 13:16
  • I did this and it still didn't get rid of the elements I wanted, any other recommendations on where to put the file?
    – user85430
    Commented Jan 10, 2020 at 15:01

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.