Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [toplinks]

The tag has no usage guidance, but it has a tag wiki.

21
votes
4answers
44k views

Best Practices Way to Edit Magento Top-Links

Let's say we want to add a shopping cart icon right before the "My Cart" link on Magento's top links (see top links below). What is the best way to do this? Do something to toplinks.php? Do ...
9
votes
2answers
14k views

How to add or remove header.links in magento2?

I am searching header.links block to remove one link and add some links but I am not getting where to make changes. Suggest me some solution
5
votes
3answers
14k views

Magento 2 remove My Account and Wishlist link from top links

I have inherited a theme from Magento's blank theme, now I need to remove the My Account and Wishlist links from the top.links block. To remove the links, I am using Magento_Theme module's default.xml ...
3
votes
3answers
2k views

Magento 2 - add link with content to top menu

I am wondering how to add programmatically a new link (to main top menu in header) with submenu (custom content visible on hover - styles is not a problem). How to achieve that, via xml or via (php) ...
3
votes
6answers
2k views

Reorder Top Links

I have been stuck on this task all day. I am hoping someone has some insight or is this a bug? I have tried a few different approaches and nothing seems to actually work. This is how it currently ...
2
votes
3answers
13k views

How to add language switcher to top links?

I'm looking for a way to add the language switcher to my top links menu. My store has 2 languages and I've modified the languages.phtml file to show the alternate language. Example: if you are on the ...
0
votes
3answers
5k views

Adding CSS & Target attribute to custom top links in default.xml Magento 2

I've searched all over google and I found a few tutorials that seems straight forward but I can't get it to work in my default.xml. Majority of the tutorials uses local.xml but I'm not sure where to ...
3
votes
5answers
17k views

how to show my account link in header after successfully login in magento 2.0

how to show my account link in header after successfully login in magento
2
votes
1answer
234 views

Change the default Magento 2 toplinks

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. My top links (above the logo) are: Compare Products Default welcome msg! My Account My Wish ...
2
votes
2answers
1k views

How to hide top links from customer groups

Is it possible to hide certain top links depending on the customer group? As we have anew feature which we have added a link to in the top link but it is only available to certain customers. We have ...
1
vote
1answer
1k views

Login link add as dropdown into my account magento 2.1.x

I want to show My account menu as drop-down and add Login/Logout link in it. Currently it shows as separate menu link in top.links >> header.links here is my default.xml <page xmlns:xsi="...
1
vote
1answer
7k views

Magento 2: Issue while add custom top links in header

I am trying to add custom top link via custom module. File /app/code/<VendorName>/Inquiry/view/frontend/layout/default.xml If I used <referenceBlock name="header.links"> then its working ...
1
vote
2answers
464 views

Product url's ends with html.html

I have migrated all my products from Magento 1.9 to 2.0. All the products url's are ending with .html like html.html sample link: http://www/domain.com/condenser-microphone.html.html
0
votes
3answers
489 views

Extend Mage_Sales_Helper_Data doesn't work

I would like to add a function in Mage_Sales_Helper_Data without editing or copy of the original file. So I try to extend it, but this code doesn't work I have created a config.xml in this folder app\...
0
votes
0answers
58 views

Magento2 top header section change layout

Currently in my site display this I need search section move to top as look wise below If anyone idea reply me how to search section move in magento2