3.8 (75%) 12 votes

In this topic we will show you How to Add Top Link in Magento 2 through 2 steps:

  • Step 1: Create/ custom default.xml file
  • Step 2: Create Link.php file

Top links section in Magento is the default block generally used to create a personal area like My Account, My Wishlist, Log in etc. In this post, I will share with you how to add more top link in magento 2 with your extension

Step 1: Create/ custom default.xml file

  • Create/ custom default.xml file in app/code/[Name_Space]/[Your_Module]/view/frontend/layout

Step 2: Create Link.php file

  • Create Link.php file in app/code/[Name_Space]/[Your_Module]/Block

The  steps I mention above is the shortest process for you to do Add Top Link in Magento 2. With this guide, you can manage the Top Link in Magento 2 easily. Every store has a Top Link in Magento 2 with many attributes.

Thank you for reading this post and see you in other posts from Magestore!

 

Sticky Header Component in Magento 2
The Relationship between Order, Shipment and Package in Magento 2