Add new link in top link magento2 without new block năm 2024

Website header is the best place to show links of the important pages. Top links on a website effectively engage users and ease the access to pages like “My Account”, “My Wishlist”, “My Cart”, etc. It helps to redirect the users to particular pages such as wishlist page or cart page, where chances of the conversions are high! The top links must be configured in such a way that it serves multi-purpose of easy navigation and boost sales.

Magento 2 has various default top links as My Account, Wishlist, etc. Sometimes, store owners require to add custom Magento 2 top links to strategize improved user experience and sales boost.

Today I’ve come up with the tutorial to add top link in Magento 2. Use the code as per your requirement.

Go to app/code/Vendor/Extension/view/frontend/layout/default.xml and paste the below code.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21