M2 Edit mobile menu - remove 'All' keyword
-
11-12-2020 - |
解決
All
word is appended by menu.js
located at \vendor\magento\magento2-base\lib\web\mage\menu.js
line # 286 by following code :
...
this.categoryLink = $('<a>')
.attr('href', categoryUrl)
.text($.mage.__('All ') + category);
...
So you need to extend this js and update this code by :
...
this.categoryLink = $('<a>')
.attr('href', categoryUrl)
.text(category);
...
For Extending Magento 2 default JS components, check this page
所属していません magento.stackexchange