How to use Customer Account sidebar menu on custom page

Step 1: Create a file in your theme

Before making any customization, the first thing you would have to do is create a customer_account.xml in your theme. Follow this:

app/design/frontend/vendor/_YOUR_THEME_/Magento_Customer/layout/customer_account.xml
Step 2: Add Custom Link

In this step, the only thing that you would have to do is adding this code to your layout xml file:

<update handle="customer_account"/>

and it includes the sidebar menu from the customer_account layout.

Finally, delete the cache and refresh the page.

Leave a comment

Your email address will not be published. Required fields are marked *