Header Links showing twice under the Account Links in Mobile Menu Magento 2
-
20-03-2021 - |
해결책
Please comment <move element="top.links" destination="customer"/>
in ../app/design/frontend/Smartwave/porto/Magento_Customer/layout/default.xml
다른 팁
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.
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:
- extra line in layout
- layout reference for links in block mixed
- other extension injects own menu
- 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.
Please comment in ../app/design/frontend/Smartwave/porto/Magento_Customer/layout/default.xml