Can anyone help me how to add customly added myaccount dashboard links in a Toggle section in magento2

Please find the screenshot.

enter image description here


  • can you add more detail with snapshot where you want to add custom link? – snkt Dec 5 '18 at 7:13
  • Please share screenshot with more details. – Ronak Dec 5 '18 at 7:14
  • Please find the screen shot in updated question, i would like to add all test links under test as toggle dropdown. – shivashankar m Dec 5 '18 at 7:23
  • Hi @Hitesh Thanks for your relpy, i have added links already, but i would like add all custom links under one dropdown – shivashankar m Dec 5 '18 at 7:43

I have did this by following steps:

  1. Create one phtml file ex. links.phtml

  2. call that phtml file in customer_account.xml in customer_account_navigation block.

enter image description here

Now you can achieve your things by phtml file

| improve this answer | |
  • Hi @Mukesh thanks for your answer, its not dropdown i need like toggle section, for every link i have created a seperate test1_customer_index.xml, in that file i called seperate .phtml file. – shivashankar m Dec 5 '18 at 10:34
  • I have 5 index.xml file like above and respected phtml files – shivashankar m Dec 5 '18 at 10:35
  • How to include all under one Test toggle section – shivashankar m Dec 5 '18 at 10:36

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.