在Magento 2.1(.1)中,徽標被移到了/vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml它的正常位置checkout.header.wrapper,然後似乎在某處丟失了。
這是禍根:
<move element="logo" destination="checkout.header.wrapper"/>
並修改:
layout="1column"
要取回徽標,請添加/編輯文件:
[root]/app/design/frontend/[vendor]/[theme]/Magento_Checkout/layout/checkout_index_index.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
layout="1column"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="logo" destination="header-wrapper"/>
</body>
</page>
參考地址:https://magento.stackexchange.com/questions/125882/add-header-and-footer-in-checkout-page-magento2