How to Add Top link in Magento 2

The links at the top of your website are highly effective in influencing the customer behavior. You can use these links to make customers stay and explore your store. These links are also a great way to increase visitor engagement and conversions on your Magento 2 store.

As Magento 2 is one of the leading ecommerce platforms. So, in this tutorial, I am going to tell you how to add a top link in Magento 2.

Magento highly recommends to follow the best practices. So, keeping that in mind, I have created a custom module for adding top links. Read on to know how I have done it. The process is pretty simple and will help you set up Top Link on your website.

Create Custom Magento 2 Module

First, create a module.xml file at app/code/Demo/Toplink/etc. file path and add the below code in the file.

Now clean and flush the cache by running the following two commands:
php bin/magento cache:clean
php bin/magento cache:flush

Your Magento 2 store top link has been updated. Launch your store to check the output.

Congrats! You have successfully added the top link to your store.

Final Words

I hope by reading this tutorial you have successfully added Top Link to your Magento 2 store.

If you have any questions about adding top links, please comment below and I will try to answer it as soon as possible.

* * * * *

This is a guest blog post by Syed Muneeb Ul Hasan.

Syed is a Magento Developer and Blogger at Magenticians – a platform to learn Magento. He is an expert in PHP and Magento and prefers to educate users in the implementation of Magento. When not working, he loves to play games and watch cricket. You can follow him on Twitter.