Categories: How ToMagento 2

How to Add Top Links in Magento 2

Top links section in Magento is the default block generally used to create a personal area like My Account, My Wishlist, Log in etc. Sometimes you really want to utilize this area to redirect customers to a CMS page which can include some informative details, terms of use or list of products that can help encouraging customers to purchase. This leads you to the use of clickable links in top menu.

Adding clickable links in top links may be a hassle for you but we magicians have deep dived to nail the solution. Here you will find a complete guide to place any links on top links in Magento 2. I have included My Cart, Checkout and My Account for example, you can add more as per your needs.

First of all, go to your custom theme app/desing/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml file.


        
             
                
                    My Cart
                    checkout/cart
                
            
            
                
                    Checkout
                    checkout
                
                               
        
      

                
                    My Account
                    customer/account/login/
                
                               
        
    

I would love your comments for any help or suggestions.

Click to rate this post!
[Total: 1 Average: 4]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate ?️ Certified Magento Developer?‍?. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.?

View Comments

Recent Posts

How to Add Tooltip in Checkout Shipping Field in Magento 2?

Hello Magento Friends, In today’s blog, I will explain How to Add Tooltip in Checkout…

2 days ago

How to Integrate and Use MongoDB with Laravel?

MongoDB is a popular NoSQL database that offers flexibility and scalability when handling modern web…

3 days ago

NodeJS | Callback Function

In NodeJS, callbacks empower developers to execute asynchronous operations like reading files, handling requests, and…

4 days ago

How to Show SKU in Order Summary in Magento 2?

Hello Magento Friends, In today’s blog, we will learn How to Show SKU in Order…

6 days ago

Best Colors to Use for CTA Buttons

The "Buy Now" and "Add to Cart" buttons serve as the primary call-to-action (CTA) elements…

1 week ago

Magento 2: How to Save Custom Field Value to quote_address for Multi-Shipping Orders

Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…

1 week ago