4

I am getting Header Links twice under the Account Links in Mobile Menu. I have attched screenshot of that. You can see in the image there is twice header links under account tab. I'm using porto theme with Magento 2.3.2.

enter image description here

Any help?

Thanks in advance...!!!

1

Please comment <move element="top.links" destination="customer"/> in ../app/design/frontend/Smartwave/porto/Magento_Customer/layout/default.xml

http://prntscr.com/r0nvs2

| improve this answer | |
0

you can start from checking where it comes from:

grep 'class="header links"' ./app/ ./vendor/ -r

grep '<!-- Account Links' ./app/ ./vendor/ -r

grep 'MENU BLOCK NAME ID' ./app/ ./vendor/ -r

and use other search variations.

there are few options:

  1. extra line in layout
  2. layout reference for links in block mixed
  3. other extension injects own menu
  4. multiple themes installed and static files deployed from them

when you install magento , go to github and create repository, push your files. every change you push to github, then you can see it in history.

| improve this answer | |
-1

I just solved this issue by way of media query. Im not entirely sure what is causing the double injection of the account links, but it seems to me that it is copying the desktop version of those menu items and also adding them to the mobile menu. In order to hide those, I went ahead and added this bit of css

@media(max-width: 767px) {
    ul.header.links:first-child {
        display:none;
    }
}

this will hide the first list (with the extra fields in there) and only give you "my account" and "sign out". In my case this is all I need, but results may vary.

| improve this answer | |
  • This is CSS will hide the default header-links when customer not logged in. – Bharat Sevra Feb 11 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.