如何在类别列表中产品列表底部的magento 2.1.8中移动静态块 [英] How to move static block in magento 2.1.8 at the bottom of product list in Category
问题描述
我正在使用MAgento 2.1.8,但由于要写入内容,我被困在将静态块移动到类别页面的产品列表底部 产品之前和之后.
I am using MAgento 2.1.8 but i am stuck in moving static block to bottom of product list of a category page as i want to write the content Before and after to products.
推荐答案
如果您有子主题,请覆盖catalog_category_view.xml.要覆盖xml文件,请执行以下步骤.
If you have child theme then override the catalog_category_view.xml. To override the xml file follow the below steps.
- 从路径 vendor/magento/mdoule-catalog/view/frontend/layout/catalog_category_view.xml 复制文件
- 将其粘贴到路径 app/design/frontend/vendor/theme/Magento_Catalog/layout/catalog_category_view.xml
-
在正文标签下方添加代码
- Copy the file from path vendor/magento/mdoule-catalog/view/frontend/layout/catalog_category_view.xml
- paste it into the path app/design/frontend/vendor/theme/Magento_Catalog/layout/catalog_category_view.xml
add the code below body tag
<move element="category.cms" destination ="content" after="category.product"/>
如果没有子主题.然后,您将必须从下面的给定链接中创建子级,然后重复步骤1到3 http://devdocs.magento. com/guides/v2.2/frontend-dev-guide/themes/theme-create.html
If you do not have child theme. Then you will have to create child from the given link below and repeat step from 1 to 3 http://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-create.html
这篇关于如何在类别列表中产品列表底部的magento 2.1.8中移动静态块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!