如何在Magento 2的主标题之前移动面包屑 [英] How can I move breadcrumb before main title on Magento 2
问题描述
我需要您的帮助.我是Magento 2的新手,仍在搜索内容.我想将面包屑移到标题之前(在类别页面上,到处都是产品).我试图在default.xml <move element="page.main.title" destination="page.top" after="breadcrumbs"/>
I would like please your help. I am newbie on Magento 2 and still searching things. I would like to move breadcrumb before title (on category pages, product everywhere). I tried to change it on default.xml <move element="page.main.title" destination="page.top" after="breadcrumbs"/>
但是没有运气.
我也尝试从vendor/magento/module-catalog/view/frontend/layout上的catalog_category_view.xml中执行此操作,但是没有运气.谁能指导我在哪里可以找到正在加载的订单?
Also i tried to do it from catalog_category_view.xml on vendor/magento/module-catalog/view/frontend/layout but no luck. Can anyone please guide me where can I find the order that is loading?
可以帮忙吗?预先谢谢你
Can you please help? Thank you in advance
推荐答案
尝试一下,
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="page.main.title" destination="breadcrumbs" before="-" />
</body>
</page>
这篇关于如何在Magento 2的主标题之前移动面包屑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!