Questions tagged [toplinks]
161
questions
23
votes
4
answers
45k
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 ...
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
9
votes
3
answers
28k
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 ...
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 ...
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
5
votes
3
answers
4k
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="...
5
votes
5
answers
5k
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 ...
4
votes
4
answers
42k
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
4
answers
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
4
answers
4k
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 ...
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="...
4
votes
1
answer
6k
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 ...
4
votes
1
answer
122
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
5
answers
7k
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) ...
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
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....
3
votes
4
answers
4k
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
2
answers
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
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 ...
3
votes
1
answer
591
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....
3
votes
0
answers
257
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 ...
3
votes
3
answers
3k
views
How to Get Top Menu in Header as dropdown in Magento 2
Want to show top links as "DROPDOWN" in custom theme. Trying from many days but still no success.
Have to show "Sign In/Up" Link in toplinks when customer is not logged in.
After Customer Logged In "...
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?
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?
2
votes
3
answers
14k
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
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 ...
2
votes
2
answers
807
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
2
answers
3k
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
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 ...
2
votes
2
answers
5k
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">
<...
2
votes
2
answers
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
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
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 ...
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.
2
votes
2
answers
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
1
answer
2k
views
how to get link My Cart and Check out in top.links in magento2?
i want get link My cart and check out to top.links. any help?
and i tried get language in top.links <block class="Magento\Store\Block\Switcher" name="store_language" as="store_language" template=...
2
votes
1
answer
146
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
1
answer
332
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
1
answer
824
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
2
answers
792
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
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 ...
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 ...
2
votes
1
answer
1k
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
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. ...
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 ...
2
votes
0
answers
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
2
answers
1k
views
Remove category(Top menu) for specific customer or customer group
I m using magento 1.9.0.1 to remove cateogroy from frontend top menu for specific category for specific customer or customer group.
I m using below code for testing but it not work
/frontend/default/...
2
votes
0
answers
235
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
3
answers
803
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
1
answer
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 ...