Questions tagged [toplinks]

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

Filter by
Sorted by
Tagged with
22
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 ...
10
votes
2answers
15k 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
9
votes
3answers
27k views

Remove Specific Top Links

I need to edit the Magento Top Links in a specific way and only need to show three links in below order Login Register Cart This would result in following Remove only Checkout Link and not Cart ...
5
votes
3answers
15k 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 ...
5
votes
5answers
18k 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
4
votes
4answers
40k views

Add new links to top links in Magento 1.9

It's pretty easy to add some types of links to top menu using this method: http://www.magentocommerce.com/knowledge-base/entry/adding-page-links-in-the-navigation-bar But I cannot figure out how to ...
4
votes
4answers
10k views

Add target to new link on toplinks

I add new link to top links using <block type="page/template_links" name="top.links" as="topLinks"> <action method="addLink" translate="label title"> <label>Blog<...
4
votes
1answer
108 views

Mage_Page_Block_Html_Toplinks @deprecated after 1.4.0.1, CE 1.8

I saw on RELEASE_NOTES.txt on CE 1.8: Fixed #17451: Header Links (top.links.phtml) does not output correctly because it is using the model code (the Toplinks block is deprecated) However,...
4
votes
1answer
1k 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="...
4
votes
2answers
1k 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
3
votes
1answer
3k views

Magento 2: move the top links in the same container as the logo

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 ...
3
votes
2answers
1k views

how to remove text “items” from top links wishlist magento 2

I want to display just wishlist count like wishlist (2) in top bar, how can I remove the word "items" or "item"
3
votes
2answers
4k views

Change position of Cart Link in Top Links

I want to put the Cart link at the end of the top links - ideally using my local.xml file. Most top links are added like this: <reference name="top.links"> <action method="addLink" ...
3
votes
2answers
515 views

Remove Sign in and Create account links from header Magento 2

I used following code for remove top links Create Account link successfully removed but Sign in link still show so can u please check and let me know what is the correction. <referenceBlock name="...
3
votes
2answers
507 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 ...
3
votes
5answers
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 ...
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
1answer
625 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?
2
votes
4answers
1k views

Finding out layout handles being evaluated for a page

I am working on a project where I want to display few links on left side of top bar at Home page, as shown below. To do this i created a new block with name left.top.links very similar to Magento's ...
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 ...
2
votes
6answers
3k 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....
2
votes
2answers
730 views

How to change the url of checkout in toplink

I need to change the url that the checkout link in top links is pointing to. At the moment it point to /checkout but i need it to point to /checkout/onepage. normally the redirect it automatic but i ...
2
votes
3answers
3k 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 ...
2
votes
2answers
558 views

How to add custom menu in top nav section in magento 2.2.5

I'm trying to add custom menu in top nav section or place any custom menu removing the existing one. How to customise this section. Please tell me step by step. I'm unable to do this after the ...
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 ...
2
votes
1answer
207 views

Move sign in to bottom in my top links

I want my top links in the order like: My Account My Wishlist My Orders Sign In But I am getting like: My Account My Wishlist Sign In My Orders Below is my code: <referenceBlock name="top....
2
votes
2answers
282 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 ...
2
votes
1answer
92 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 ...
2
votes
1answer
131 views

Magento Top Links Login class disappears randomly!

So I have slightly modified the customer.xml file to add classes to the top links, so I could add font awesome icons to them. The issue I am having is for some reason the login class disappears if I ...
2
votes
1answer
328 views

Is there any way of changing 'View All Products' in Top Navigation?

I'm very new to Magento, so this might be VERY basic... Using the demo data provided by Magento, the Top Navigation bar includes "Men", "Accessories", "Home & Decor" etc. Each heading has ...
2
votes
1answer
785 views

Get store configuration variable for addLink in local.xml

I'm am using the addLink method of Mage_Page_Block_Template_Links in my local.xml, which uses links.phtml as a template. Is there some way of passing links.phtml the store email/phone addresses which ...
2
votes
2answers
557 views

Check if customer logged in not working

I have a block to add link at top based on if customer login like this, when i'm at myaccount page the header link show the right one, but when i go to other page it shows the wrong one, here's my ...
2
votes
2answers
5k 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 ...
2
votes
2answers
1k views

How do I change text on top links

I am designing a theme in Magento 2 using blank theme as parent theme. I would like to change text on some of the the top links like this: From "Compare Products 1 items" into "Compare (1)" From "My ...
2
votes
0answers
62 views

How to add new custom dynamic link in magento2 top header links?

I want to add a custom dynamic link on top gray navigation bar besides welcome message when a specific user with a specific customer group is logged in. the main entry would be dynamic which will ...
2
votes
1answer
272 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
0answers
247 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. ...
2
votes
2answers
704 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?
2
votes
1answer
33 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 ...
2
votes
0answers
1k views

Category Menu Navigation in top.links

I have searched high and low for an answer on this but have not been able to come up with the solution I am looking for. I am hoping maybe someone here can point me in the right direction. I have a ...
2
votes
0answers
205 views

Top links added is showing twice? [closed]

I have added to links with following code in local.xml file. <?xml version="1.0"?> <layout version="0.1.0"> <default translate="label" module="page"> <reference name="...
1
vote
3answers
742 views

How to replace “My Account” with the customer name

After Login i want to replace the "My Account"(Dropdown with links) With "Hi,FirstName" post login ? How do i do that , I am not talking about welcome message ,
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
4answers
3k views

Add A Custom CSS Class To Main Menu Link

Is their a way to add a custom class to one link within the main navigation? For example I would like the category "SALE" to be coloured red and be bold. Is this possible? Many Thanks
1
vote
1answer
612 views

How to add dynamic link to top-links?

For my custom module i need to add one top-menu to homepage. Path may change according to the value given in configuration section. How can i add dynamic link to the top-menu item.Please help
1
vote
1answer
840 views

Magento layout not working in custom theme

I don't know if this question has answered before. I am creating a custom theme in magento 2.1. My parent theme is magento/blank. I have copied layout and template files from module-theme\view\...
1
vote
2answers
11k 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 ...
1
vote
2answers
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="...
1
vote
2answers
4k views

Magento 2 - Top link position

I was working with the layout xml for the top links. My code is in my custom module default.xml: <?xml version="1.0"?> <body> <referenceBlock name="header.links"> <...
1
vote
1answer
262 views

TopLinks Do not show up

the TopLinks navigation does not show up at all in my template. in page.xml I have <block type="page/template_links" name="top.links" as="topLinks"/> in block <block type="page/...