如何在面板包装器中显示我的徽标而不是 Magento 2.3 中的实际位置?
How to display my logo in panel wrapper instead of actual position in Magento 2.3?
我想在 面板包装器 中显示我的徽标,而不是在 Magento 2.3 中的实际位置。
我怎样才能做到这一点?
像
而不是
找到您正在使用的 header 样式并编辑您的 header 样式
app\design\frontend\\market\Magento_Theme\templates\html\header-style.
在该文件中添加您的自定义 html。
echo $block->getChildHtml('logo_theme');
您可以使用您主题的default.xml[=将徽标移动到header.panel.wrapper 21=] 文件.
打开app\design\frontend\Vendor\Themename\Magento_Theme\layout\default.xml文件添加以下代码:
<move element="logo" destination="header.panel.wrapper" before="-"/>
这会将徽标移入 "panel wrapper" class。
我想在 面板包装器 中显示我的徽标,而不是在 Magento 2.3 中的实际位置。 我怎样才能做到这一点? 像
而不是
找到您正在使用的 header 样式并编辑您的 header 样式 app\design\frontend\\market\Magento_Theme\templates\html\header-style.
在该文件中添加您的自定义 html。
echo $block->getChildHtml('logo_theme');
您可以使用您主题的default.xml[=将徽标移动到header.panel.wrapper 21=] 文件.
打开app\design\frontend\Vendor\Themename\Magento_Theme\layout\default.xml文件添加以下代码:
<move element="logo" destination="header.panel.wrapper" before="-"/>
这会将徽标移入 "panel wrapper" class。