-1

I've updated to magento 2.2.1. I want to change my account and create an account text to icons, I found the text in default.xml, so can some one let me know how to change the text to an icon

0

You should be able to do this in a translation file, like mentioned by Moin Malek.

Simply add a translation like

"My Account","< span class="icon">< /span>"

to your translation file.

The simple text should be replaced by your HTML markup (which obviously needs to be valid to work), that way you could "inject" an icon here without much hassle.

  • will this work in xml code, since my code "My account in a xml file" <block class="Magento\Customer\Block\Account\Link" name="my-account-link"> <arguments> <argument name="label" xsi:type="string" translate="true">My Account</argument> <argument name="sortOrder" xsi:type="number">110</argument> </arguments> </block> – anirvan Nov 22 '17 at 13: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.