如何在Magento 2的主标题之前移动面包屑 [英] How can I move breadcrumb before main title on Magento 2

查看:126
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆