In this tutorial, we are going to discuss that how can we create a custom link for ‘my account’ section in Magento 2 for customer’s dashboard.
The first thing we need to do is to create a layout XML file in our theme. Let’s call it customer_account.xml
Path & file: app/design/frontend/Magemonkeys/magetheme/Magento_Customer/layout/customer_account.xml
Add below code in your layout XML file.
<referenceBlock name="customer_account_navigation">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-custom-link" after="-" >
<arguments>
<argument name="label" xsi:type="string" translate="true">Custom Label</argument>
<argument name="path" xsi:type="string">custom-link-path</argument>
</arguments>
</block>
</referenceBlock>
That’s it. Hope you will able to create a custom link by using the above method.

