1
想要在文本前用圖像標籤將「創建帳戶」文本更改爲「註冊」,但我無法更新文本,但以下修改爲Magento_Customer/layout/default.xml。更改header.links上的「創建帳戶」文本?
<referenceBlock name="register-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Register</argument>
</arguments>
</referenceBlock>
<referenceBlock name="my-account-link" display="false" />
<!--
<move element="register-link" destination="header.links"/>
<move element="header" destination="header.links" before="-"/>
<move element="top.links" destination="customer"/>
<move element="authorization-link" destination="top.links" after="-"/>
-->
<block
class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link"
template="account/link/authorization.phtml" before="register-link"/>
</referenceBlock>
<block class="Magento\Theme\Block\Html\Header" name="header" as="header">
<!--
<arguments>
<argument name="show_part" xsi:type="string">welcome</argument>
</arguments>
-->
</block>
我的錯是什麼?
什麼名字參數應該被用來改變註冊的文字? – Moax6629