Questions tagged [toplinks]

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

Filter by
Sorted by
Tagged with
4 votes
1 answer
4k views

Magento 2 : How to check multiple if config in layout?

Here is my code to add toplinks in my custom module <referenceBlock name="header.links"> <block class="Magento\Framework\View\Element\Html\Link" ifconfig="hello/general/enable" name="...
Piyush's user avatar
  • 5,883
2 votes
2 answers
4k views

Magento 2 - How to change position of Sign in and My Account link?

How can i move account creation link and sign in link after the search box. Need Help
kamal's user avatar
  • 338
0 votes
1 answer
891 views

Magento2 sign-in link move to the search box Near

How can i move account creation link and sign in link after the search box in header. Need help.
kamal's user avatar
  • 338
1 vote
1 answer
3k 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=&...
Ronak Chauhan's user avatar
1 vote
1 answer
1k views

Magento 2 : Top Navigation External Link

I need to add custom nav link directing to an external site (http://etc) in my top nav. Admin won't let me do this. Running locally on mac web server. V 2.0.13 Luma child theme Thanks
guest's user avatar
  • 131
1 vote
1 answer
57 views

Top Links editing

Ok, I give up. I've created a child theme based on Luma. At the very top of the page I see these links "Compare Products 0 items My Account Create an Account Sign In" and then a detached word "or". ...
guest's user avatar
  • 11
0 votes
1 answer
438 views

top link edit Luma magento 2

I'm trying to change the top links "Compare Products My Account Create an Account Sign In". This a child theme. I've attempted to change both the default.xml and layout.xml in my layout directory. ...
user52301's user avatar
3 votes
2 answers
547 views

magento enterprise session cache issue

I am working on magento enterprise 1.14.2.0 and we installed all patches that required. I am facing issue with cache or session when customer login to his/her account, Customer name display wrong ...
Vaibhav Ahalpara's user avatar
2 votes
0 answers
282 views

Changing Login text to Image + creating drop down for My account, Wishlist, Sign out and more.

A similar question was asked for Magento 1.9, trying it for Magento 2.0 broke my site. Looking for a more specific answer. I am using Magento 2.1.5 -- I want to remove the Top links from all pages. ...
Angie R.'s user avatar
1 vote
0 answers
181 views

Magento2: How to locate file in destination using the move element.

I'm been looking through my default.xml trying to add links to top.links. In the default.xml file I see this. <move element="top.links" destination="rd.navbar.collapse.items"/> so I know ...
Ahdee's user avatar
  • 255
2 votes
2 answers
338 views

How to add top link in via custom module

How to Add top link after "My Wishlist". The link should be visible on activating my custom module.I'm using Magento 1.9. I added the following <reference name="top.links"> <action ...
DEEPESH KUMAR R's user avatar
1 vote
2 answers
249 views

Adding Top Link via a custom module - Magento 1.9

I have some custom module, on activating this module I want to show a "Custom Module Link" as a top link. Please refer the snapshot below. How can I achieve this? This link should redirect to one of ...
sreelakshmi's user avatar
0 votes
1 answer
441 views

Magento 1.9 Top Links. Issue with removal of addLink from another layout handle

I have a project where I needed to add a custom link to top.links via XML (This is a product URL). Maybe this is not the correct way to add a product to top.links? The handle customer_logged_out ...
Rob's user avatar
  • 534
0 votes
1 answer
210 views

Edit links in header.phtml block

I need to alter the Blog url in the "The Checkout | Blog | Login/Register" block that is referenced in the theme/template/page/html/header.phtml I have looked everywhere and cannot find it. All I ...
Paul Wallace's user avatar
3 votes
3 answers
1k views

Magento 2 : Remove Top Links When Customer Not Logged In

I would like to remove My Account link from top links, when customer is not logged in. How do I achieve it via XML layout files?
giani.sim's user avatar
  • 1,463
0 votes
2 answers
1k views

Magento 2 Custom Top header Link is not Showing

I want to create a custom top link in magento 2 for my custom module, but when i load the home page, the custom top link doesn't show up, here's my view/frontend/layout/default.xml: <?xml version=...
simple guy's user avatar
  • 2,474
2 votes
1 answer
50 views

Checkout top link resulting in 500 error

I'm in need of some assistance. When I click on the top link "Checkout" on my site, redirected to https://MyURL.com/checkout/ and given a 500 error. When I clink on "Cart" and then "Proceed to ...
NoviceClueless's user avatar
1 vote
1 answer
2k views

Adding top.links to new header container magento 2

I've added a new reference container inside of: Magento_Theme/layout/default.xml Here is my code for adding the new container: <referenceContainer name="header.container"> <!-- ...
andy jones's user avatar
  • 1,383
4 votes
2 answers
2k views

How To Set Font Awesome Icon in Magento Top Links?

How To Set Font Awesome Icon in Magento Top Links? In Magento Customer.xml app\design\frontend\mytheme\default\layout\customer.xml
Rushikesh Solanki's user avatar
0 votes
1 answer
294 views

how to add a top link in custom module at prefered position

Can anyone let me know how to add custom top link on top menu after create an account link or at any place I want to put before/after. I have tried with after attribute but its not changing position ...
bhargav shastri's user avatar
3 votes
6 answers
7k views

Removing wishlist link - top header magento 2

I've seen this question asked time and time again, and i know this will sound like a duplicate. But every answer everyone else has doesn't work for me. I'm using: <page xmlns:xsi="http://www.w3....
andy jones's user avatar
  • 1,383
2 votes
1 answer
2k views

How to override top.links in magento 2

I am trying to override sign in and register link in magento 2. can any one please help me on this.
rajat kara's user avatar
  • 1,209
0 votes
1 answer
1k views

Add custom link to top link next to My Account in magento 1.9

this is my config file in etc\module : <?xml version="1.0"?> <config> <modules> <Net_Toplinks> <active>true</active> <codePool>local</codePool> &...
user7193478's user avatar
1 vote
1 answer
900 views

how can i get a url helper for the contact us (contacts) page of my magento 1.9.2 site?

Hi I have sucessfully added a link to top links in the customer.xml file in my theme. I added this code to <reference name="top.links" /> <action method="addLink" translate="label title"...
alThePal's user avatar
2 votes
3 answers
7k views

Magento 2 : How can i add Icons to the user links such as "My account" Login" Sign in etc

Further in Magento 1, I could just edit the html template file and do anything I could imagine. Now with this complicated with xml thing, extending templates etc. I'm confused. What I' trying to do ...
Fancyman's user avatar
  • 509
1 vote
1 answer
130 views

how do i block top links from being index magento2 using robot text [duplicate]

Google seems to be indexing Wishlist - Add to Cart, My Account” and “Log In/Log Out” links. is there any ways to have something in robot text to block it? add to cart seem to be appearing on google ...
roger's user avatar
  • 541
0 votes
2 answers
218 views

Remove entry from top links (after malware)

I had a malware on my page and after that the entry "Our Team" appears on the top linke of my page www.worg.ch. I would like to remove this link again. I was looking for local.xml but I cannot find ...
adrianomartins's user avatar
15 votes
4 answers
30k 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
coder's user avatar
  • 639
0 votes
3 answers
8k 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 ...
Amy Ling's user avatar
  • 390
0 votes
0 answers
85 views

How to add link to homepage in top menu? (Magento 2) [duplicate]

How do you add a link to the homepage in the top menu? It must be the first link, after this link must be the links to the categories. Thanks in advance. Extra information: my theme is based on the ...
Kevin's user avatar
  • 329
2 votes
2 answers
15k views

Editing header links in Magento 2

I'm on Magento 2.1, the header links are rendered with this structure: <ul class="header links"> <li>...</li> <li>...</li> ... </ul> I need to remove the ...
Fred K's user avatar
  • 270
1 vote
2 answers
751 views

Where is "or" generated from, as in "Sign In or Create An Account"

Does anyone know where "or" is generated from, as in "Sign In or Create An Account" in the bar at the top of every page? It does not appear to be part of either link, just placed there to separate ...
Krang's user avatar
  • 167
5 votes
5 answers
27k 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
vnnogile_user's user avatar
1 vote
2 answers
611 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
roger's user avatar
  • 541
1 vote
1 answer
3k views

Magento 2 : How to change position of Sign in and My Account link?

Magento 2 how to change Position of My Account Link and Sign In link in header. i want to show position like, Sign In, My Account and My Wishlist. Theme is blank to working for it. Thanks. I would ...
Rakesh Jesadiya's user avatar
2 votes
1 answer
97 views

Find the code which hide the top links

we have top links in our site1 as below store view switcher, My Cart, Checkout, Register, Log In for some reason we removed it and made it like site2 we want to know what code is removing the top ...
Baby in Magento's user avatar
7 votes
3 answers
25k 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 ...
Taral Patoliya's user avatar
1 vote
1 answer
2k views

Customer Log In URL

I realized that my login URL is very weird, with a lot of letters and numbers (like an encrypted text). When I go to app/design/frontend/base/default/layout/customer.xml and check the item <...
Bruno Monteiro's user avatar
1 vote
1 answer
3k views

How to add Custom Top Links in Magento 2?

Hello Can you help me on how to add custom top links in the header area of Magento 2, Like this:
MazeStricks's user avatar
  • 1,235
0 votes
2 answers
2k views

Rename or delete 'My account' top link in header Magento 1.9

By now, I have 'My account' (with its dropdown menu) next to 'Log in' in my home page. I want to only have a 'Log in' button that changes to 'Log out' when user is logged. I've been trying with ...
mangus's user avatar
  • 1
0 votes
1 answer
286 views

Editing TopLinks via local.xml - changing LogOut and LogIn based on <customer_logged_in>

I can't seem to get Magento to react to the customer_logged_in or customer_logged_out tags in local.xml The LogOut link does not display unless I remove the customer_logged_in tag then the link ...
jharrell's user avatar
  • 126
1 vote
1 answer
139 views

Link to Apple Appstore and Google play store

We use magento 1.8.1CE We have just launched an app in the app store and the google play store. Now i would like to have, that there a link is beeing shown. (on phones with android and IOS only) ...
Ronny's user avatar
  • 433
2 votes
2 answers
6k views

Add Custom Link to Top Link in magento

I want to add custom link in the 'top link' section(white list, Login, Account). Basically i want to add "Blog" link at the top of the links. When user click on the link then its redirect to the ...
Muneeb Ahmad's user avatar
1 vote
2 answers
2k views

Moving the position of header top links

I am trying to change the position of top links. I want to move top.menu before top.links. In my page.xml following code is given: <block type="page/html_header" name="header" as="...
Triyugi Narayan Mani's user avatar
0 votes
0 answers
160 views

Magento 2: Add product page links to header / dropdown

I only have six products in my store and want to add their product page links to the main header, instead of the category page. Is it possible?
MikeMason's user avatar
  • 1,357
3 votes
1 answer
721 views

How can I move my cart from my header into the right of my navigation?

I would like to know how to move my cart icon into my navigation instead of the header. How can I do this?
Oli Tuck's user avatar
  • 195
0 votes
2 answers
1k views

Removing Sign Up from top.link

So my website currently has a "Register" button and a "Sign Up" button. The "Sign Up" button doesn't show up on mobile devices no matter what, so I figure removing it is my best option. I can remove ...
taskle's user avatar
  • 365
0 votes
1 answer
188 views

position attribute in whishlist.xml does not work

I would like to reorder the wishlist in top links through xml file not editing the app\code\core\Mage\Wishlist\Block\Links.php Wondering why below code does not work? <default> <...
Zinat's user avatar
  • 2,049
0 votes
1 answer
76 views

Top links when login or not login

With this parameter in the xml I can add a top link <action method="addLink" translate="label title"> <label>Registrati</label> ...
yavonz15's user avatar
  • 417
1 vote
2 answers
1k views

Navigation Links for CMS Pages

I've been trying to figure out how to add links to the top navigation for Magento 2. In 1.x we'd just URL rewrites, however, that doesn't seem to work in Magento 2.x at this point. I added a new ...
Philip Deatherage's user avatar