Questions tagged [toplinks]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

Navigation links disappear after upgrade to Magento CE 2.4.5

I'm somewhat of a Magento noob and inherited this site. I upgraded to 2.4.5 from 2.4.0 and basically, the top links and footer links disappeared. For example, this block is no longer displaying: <...
user112097's user avatar
1 vote
0 answers
56 views

How can I add a link in the header and this link should redirect to an external page

I need to add a link in the header and this link should redirect to another page. please suggest easy way to do this. Thank you
TULASI GAYATRI MADETI's user avatar
0 votes
1 answer
25 views

How to implement custom links for a category?

When a category is loaded, it uses links that lead to the category. How to add a field for the link in the category and if the field is filled in, as a result, the link by clicking on the category ...
Alice's user avatar
  • 148
0 votes
2 answers
1k views

Add custom link to top.links section

I have a top. links in default.xml in my theme, I need to add the custom link above My Account, but the link is always at the bottom, how I can move to the top if sortOrder not working? <page xmlns:...
Lerry's user avatar
  • 69
0 votes
1 answer
28 views

Add into Top Link - My Downloadable Products

I need to add a link to the top.links block that links to My Downloadable Products and translate it to My Favourite Product, can you tell me if this possible. <referenceBlock name="top.links&...
Lerry's user avatar
  • 69
0 votes
2 answers
656 views

Magento2 - Changing the position of header content

I want to make the Free Shipping content at the top center of the site but it is in right corner. How to change the css for doing it? Created a block on the admin panel and applied this code on ...
kks's user avatar
  • 19
0 votes
1 answer
650 views

Replace My Wishlist Text with Icon

I want to know how to replace the "My Wish List" text in toplinks with an icon. I don't want an Icon with pseudo code like "::before". Adding a <i> </i>- tag in the ...
Samuel Demir's user avatar
1 vote
1 answer
180 views

Edit text in Sign In link

I am using a custom theme with Luma parent, and I am trying to change the text of the Sign In link (authorization-link-login) at the top. I am able to edit the text of the register link in my default....
Dylan T's user avatar
  • 17
1 vote
1 answer
53 views

Header Links showing beyond search box and minicart beyond navigation !! Magento 2.3.5-p1

When a customer is signed in the header links (My account, My Wish List, SIgn Out) are displayed beyond the search box . See the image attached . I've noticed that there is an element.style {z-index:...
Andrea's user avatar
  • 11
0 votes
0 answers
143 views

Customer Name Not Showing In Header section Magento 2

In my module, I did forcefully logged in to the customer without a password. And After logged in customers redirect to the Homepage only. And everything works as expected, except customer name not ...
Nilava Chakraborty's user avatar
1 vote
1 answer
740 views

Magento2.3: How to display the register link in my custom module?

I want to display the Login and Register link in one of my custom module. I have got a solution for displaying the Login link by giving the below code in block file: public function ...
MagentoDev's user avatar
1 vote
1 answer
1k views

Magento 2 : How to move register-link next to minicart?

I want to move the Create An Account button, near the mini cart in the header section.
Jaisa's user avatar
  • 2,522
1 vote
2 answers
143 views

How to manage cache issue on toplink in mageno 2?

I am showing logged in username in Magento2 toplink. But due to Magento full page cache, it showing another username. I tried using cachable="false" for toplink block. It works on the MyDashboard ...
Arul's user avatar
  • 309
1 vote
1 answer
2k views

Not able to move "Porto" theme top links under header content (After search) in Magento 2.3.2

I am using Porto theme (header Type 1) with Magento 2.3.2 setup. I want to move Top Links section elements i.e : Sign in, Currency etc under the header content after the mini search bar. Here is the ...
Akshay Prabhakar's user avatar
0 votes
1 answer
621 views

How to show My Account link in frontend after succesfully logged in?

How can I show the My Account in header after the welcome message after successfully logged in my website? I have got help in displaying them on customer menu but now I want to show it in header ...
MagentoDev's user avatar
1 vote
4 answers
1k views

Magento2.3.1 i want to remove wishlist link from top.links but not working

I have added below code in my custom Magento_Theme default.xml file to remove top.links <referenceBlock name="top.links"> <referenceBlock name="register-link" remove="true"/> ...
Rutvee Sojitra's user avatar
1 vote
1 answer
140 views

How can i add header links next to language switcher or Left side

I need to add some custom links on header just like below screenshot:- But as i trying to add the same on "header.links" it's adding right side(near CONTACT US link). how can i achieve my expected ...
Wakar Ahamad's user avatar
0 votes
1 answer
627 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?
nashwa ghazy's user avatar
3 votes
0 answers
249 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 ...
MSQ's user avatar
  • 211
1 vote
1 answer
106 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....
taskle's user avatar
  • 365
0 votes
1 answer
2k 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
prabhakaran7's user avatar
  • 1,057
0 votes
0 answers
289 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
Rv Singh's user avatar
  • 1,617
0 votes
2 answers
45 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 ...
Developper Magento 's user avatar
3 votes
1 answer
585 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....
Chethan Sreenivasa Murthy's user avatar
0 votes
0 answers
533 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 ...
Pawankumar's user avatar
0 votes
1 answer
1k 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
Morgan Tartreau's user avatar
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 ...
M.Suman's user avatar
  • 107
4 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="...
Pratik Patel's user avatar
1 vote
2 answers
2k 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.
Avesh Naik's user avatar
  • 1,153
1 vote
1 answer
265 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 ...
Nagaraju Kasa's user avatar
1 vote
1 answer
305 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 ...
Chaz's user avatar
  • 269
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 ...
RLTcode's user avatar
  • 863
0 votes
0 answers
222 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 ...
dev's user avatar
  • 63
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) ...
Rob's user avatar
  • 409
1 vote
2 answers
4k 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\...
Rathna's user avatar
  • 303
1 vote
2 answers
2k 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"&...
Sam's user avatar
  • 11
0 votes
1 answer
420 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-...
Sarvesh Tiwari's user avatar
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 ...
Razvan Zamfir's user avatar
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 ...
Razvan Zamfir's user avatar
0 votes
1 answer
128 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. ...
Vladimir Despotovic's user avatar
0 votes
1 answer
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, ...
Vladimir Despotovic's user avatar
2 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 "...
Vinay's user avatar
  • 433
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"
Waqar's user avatar
  • 974
0 votes
1 answer
1k 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 ...
Davallen's user avatar
0 votes
1 answer
469 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 ...
drafiko's user avatar
  • 45
1 vote
1 answer
2k 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 ...
Vaish's user avatar
  • 189
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 ...
simple guy's user avatar
  • 2,454
0 votes
1 answer
112 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 ...
Nirav Joshi's user avatar
1 vote
1 answer
1k 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\...
hakkim's user avatar
  • 191
0 votes
1 answer
797 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 ...
Vishwa's user avatar
  • 165