我在顶部标题上缺少“登录”-但是我确实有“创建帐户” 有人可以看看我的自定义主题XL并建议我所缺少的..我已经尝试了一切。
<referenceBlock name="footer_links" remove="true" />
<referenceContainer name="header.panel">
<block class="Magento\Framework\View\Element\Html\Links" name="header.links">
<arguments>
<argument name="css_class" xsi:type="string">header links</argument>
</arguments>
</block>
</referenceContainer>
<referenceBlock name="logo">
<arguments>
<argument name="logo_img_width" xsi:type="number">148</argument>
<argument name="logo_img_height" xsi:type="number">43</argument>
</arguments>
</referenceBlock>
<referenceContainer name="footer">
<block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" after="footer_links" template="switch/stores.phtml"/>
</referenceContainer>
<referenceBlock name="report.bugs" remove="true"/>
<move element="copyright" destination="before.body.end"/>
</body>
答案 0 :(得分:0)
授权链接块可能已从您的主题中删除,或者父块/容器已被删除,您可以通过添加手动添加
<block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link" template="Magento_Customer::account/link/authorization.phtml"/>
您要显示该块的容器/块,例如:header.panel