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.

0
votes
1answer
26 views

How to remove items count from Compare products link in header

I don't want to remove the whole link from frontend theme I just want to remove a part of the link. I don't know where the file that I should edit it any help?
2
votes
0answers
38 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 ...
1
vote
1answer
33 views

Remove Register top.link

I know how to do this in a general sense, except for whatever reason, I can't get it to work properly on a second website. My second website is merely a subdomain of my main, so https://second....
0
votes
1answer
95 views

How to change the links of header menu in magento 2?

`How to change the links of this this menu Register here links in my account menu any ideas
0
votes
0answers
49 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
0
votes
2answers
33 views

How to show other custom attribute instead of name customer in top link magento 2

In my case, i have two type of customer: for local customer i will keep the firstname lastname in top link if it's connected else i want to display a custom attribute that i added in registration form ...
0
votes
0answers
14 views

Magento 2.2.5, get customer account dropdown links

In Magento 2.2.5, I want get and display the customer account navigation links in the custom phtml. How to achieve this.
2
votes
1answer
137 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....
0
votes
0answers
157 views

How to get or append some extra query param to url

I have added some links in top. i want get query param from url and append in to every links in top dynamically like my links are = test1, test2, test3 My mail url is = https://apcd.com When ...
0
votes
1answer
67 views

Add link to customer-menu

I need to add a custom link to the dropdown menu : <div class="customer-menu" data-target="dropdown"> How can I do this easily (without using jquery), I need to do it the magento way
2
votes
2answers
396 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 ...
3
votes
2answers
299 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="...
0
votes
0answers
38 views

My account link only when customer connected

I would like to hide the header top link "My account" when the customer is not connected, i've found a solution but it's talk about the file "customer.xml" but I don't have this file in my Magento 2, ...
1
vote
2answers
874 views

How can I add dropdown menu

The above image is of top-links. I wanted to add a drop-down for My Account. When the user click or hover on it, My Account should show My account option For example orders.
1
vote
0answers
63 views

Magento 2 : How to remove signout from my account section at header?

While customer logged into account it is showing two sign-out from header Kindly check the below default.xml file from my custom theme. Can you please suggest ? Actually I have used parent theme as ...
1
vote
1answer
177 views

Magento1.9: Absolute vs relative links

so far we've been working with mostly absolute links which is now causing us an issue because we have 2 different domains for the same language, (.at and .de) and both are sharing the same cms pages ...
3
votes
6answers
1k 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 ...
0
votes
0answers
167 views

Header links Block

I am trying to make changes to the header top links on my magento 2.1.8 store. I have created a custom module called Batch Order which should only be accessible to customers from certain groups. The ...
3
votes
3answers
1k 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) ...
0
votes
2answers
2k views

Magento 2.2 how to change header link create an account text to icon

I want to change create an account text to icon. I can find the layout file under var\www\html\vendor\magento\module-customer\view\frontend\layout\default.xml <block class="Magento\Customer\...
1
vote
2answers
725 views

Moving “My Account” link from the top links in 2.2

having trouble with a layout change in Mage 2.2. I want to move just the link for "My Account" from its current position (located inside <div class="panel header"> <ul class="header links"&...
0
votes
1answer
75 views

How to add header link in magento 2.1

I want to add header links in magento Blank Theme Default.xml <referenceBlock name="top.links"> <block class="Magento\Framework\View\Element\Html\Link" name="new.link" after="register-...
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 ...
2
votes
1answer
226 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 ...
0
votes
1answer
67 views

Change the top links URL in a custom third party theme

I have to change the URL for "Placanje" link so it points to (http://localhost/darnik/customer/account/create/) instead of the current one. Please see the attachment with the template and block hints. ...
0
votes
1answer
20 views

Change the links in a custom third party theme

I have to change the text "Prijava" in the header to "Login". See the image: How can I do this? I tried to look for it in the .phtml and Block class, but I couldn't find the text "Prijava" nowhere, ...
0
votes
2answers
1k 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 "...
2
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"
0
votes
1answer
546 views

Adding top links to mobile menu

I'm trying to add, the top links and store switcher, to the mobile menu. In header_type3.phtml, I can see it's calling store_switcher and topLinks blocks. I tried to call them from mobilemenu.phtml ...
0
votes
1answer
193 views

Magento 2: How to wrapper link in new div?

I need wrapper into a new div the block help create in the header.panel. I wrapped the block header-links in the new div and work, but the link custom doesn't wrapper in other div. This is the code ...
1
vote
1answer
643 views

Magento 2: How to add external URL in custom top links

I would like to add a custom top link which redirects to external URL like Google.com or a blog link etc. I added the custom top link using referencecontainerBlock. However, I'm not sure where ...
2
votes
1answer
501 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 ...
0
votes
1answer
83 views

problem to get toplinks and minicart

when I am calling echo $this->getChildHtml('topLinks') and echo $this->getChildHtml('cart_minicart') in header.phtml file than it outputs like <!-- fpc ...
1
vote
1answer
773 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\...
0
votes
1answer
225 views

Customize magento 2 theme

I installed magento 2 and successfully implemented custom theme. I used magento blank as my theme's parent theme. I'm new to magento, so this may seem like a stupid question, but please help me ...
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="...
1
vote
2answers
2k 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
0
votes
1answer
462 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.
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
655 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
1
vote
1answer
50 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". ...
0
votes
1answer
308 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. ...
3
votes
2answers
473 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 ...
2
votes
0answers
239 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. ...
1
vote
0answers
151 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 ...
2
votes
2answers
264 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 ...
1
vote
2answers
136 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 ...
0
votes
1answer
274 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 ...
0
votes
1answer
132 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 ...
2
votes
2answers
668 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?