We changed our privacy policy. Read more.

Questions tagged [toplinks]

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

Filter by
Sorted by
Tagged with
1
vote
4answers
4k 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
659 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
1k 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 ...
1
vote
1answer
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\...
1
vote
1answer
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=&...
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
1answer
264 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/...
1
vote
1answer
103 views

Add links to top links navigation

I'm studying to get FE certification and I'm trying to add a link to top.links block adding this code to local.xml: <action method="addLink" block="top.links"> <label>shop</...
1
vote
2answers
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.
1
vote
2answers
3k 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
1answer
55 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". ...
1
vote
2answers
224 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 ...
1
vote
1answer
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"> <!-- ...
1
vote
2answers
690 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
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 <...
1
vote
2answers
29 views

top mycart link layout

I'm using magento 1.9 with a custom theme, I didn't build it, I inherited it and its a bit of a mess, but at least functional. My question is There is no space between 'my cart and 'checkout' What ...
1
vote
1answer
957 views

how to add newsletter link page to toplink

I want to add newsletter link to my top link block like first link. I think that it can works adding some string in layout.xml files. I've tried to add this code into customer.xml but the newsletter ...
1
vote
1answer
697 views

Add CMS page links into Nav menu using local.xml

I have been trying to add cms page links into the Main navigation using the local.xml file. I tried the following, however this references the top links instead of the main nav. <reference name="...
1
vote
1answer
729 views

aligning magento top links left and right

I have added additional static links in magento top link beside checkout login etc. Default welcome, my account etc links are left aligned, and i want my additional links to be right aligned. I am ...
1
vote
1answer
1k views

how to link to category page from phtml?

I have a category page called "team", which is nested in my menu structure. How can I link to that page and url, from within a phtml page elsewhere? I am of course wanting it to be dynamic. For ...
1
vote
1answer
25 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....
1
vote
1answer
418 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 ...
1
vote
2answers
117 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 ...
1
vote
4answers
662 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"/> ...
1
vote
1answer
70 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 ...
1
vote
1answer
291 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 ...
1
vote
1answer
864 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"...
1
vote
1answer
94 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 ...
1
vote
1answer
133 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) ...
1
vote
2answers
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 ...
1
vote
1answer
90 views

how to remove top links from some .phtml pages

visit the link : http://2.kidsdial.com/ on top right you can see : "My account, My wishlist...etc" I want to hide these links from some .phtml pages. for example from this page : http://2.kidsdial....
1
vote
1answer
126 views

aParams does not show class in anchor

I want to add a top link and I do this by the following in local.xml: <reference name="top.links"> <action method="addLink" translate="label title"> <label>...
1
vote
1answer
157 views

Move top links to left column with CSS only

Is it possible to move the top links in user menu from the right hand column, to the left column purely with CSS? My theme has it by default in the right column, but the design needs it to be in the ...
1
vote
1answer
281 views

How can I change the persistence message that shows when a customer logs out?

I am trying to change the persistence message that shows in the header when a customer logs out. (Not Mr Foo?) I've tried changing it via translation file: "Not %s?","Log In / Register" I've also ...
1
vote
1answer
154 views

Turn Magento Footer Links into togglable List for Mobile Devices [closed]

Lets assume this is my footer link markup: <div class="links"> <div id="links1-title">Links 1</div> <ul id="links1-content"> <li>xyz</li> <li>xyz&...
1
vote
4answers
2k views

Magento seo question. Nofollow on top links like cart/login?

Magento seo question. Nofollow on top links like cart/login? While reading up on seo I thought to add no follows to default links that exist on every page. Cart. Login. Checkout. TC. Faq. When ...
1
vote
1answer
256 views

Conditionally hiding and showing block and links

I am working on an application for which i have two types of user in Magento system. Each user can login and reach to their Dashboard. On the user Dashboard depending on what kind of user is logged in,...
1
vote
1answer
16 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:...
1
vote
1answer
419 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.
1
vote
1answer
954 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 ...
1
vote
1answer
75 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....
1
vote
0answers
141 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
2answers
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"&...
1
vote
1answer
972 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
0answers
168 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 ...
1
vote
2answers
579 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
1
vote
1answer
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:
1
vote
0answers
88 views

top links css not showing in Magento [closed]

I am using magento 1.8.0. I have added new toplink in header. I have added following code in customer.xml file of my theme : <default> <reference name="top.links"> <action ...
1
vote
1answer
209 views

Adding a top link

I am wanting to add a link at the top beside the My Account link. As I had said in a previous post, I took this site over from another developer and not sure what if any customization he had done, so ...