douduiti3040 2017-12-07 16:27
浏览 39

如何在类别中的产品列表底部的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.

  • 写回答

2条回答 默认 最新

  • dongsi2317 2017-12-28 16:53
    关注

    If you have child theme then override the catalog_category_view.xml. To override the xml file follow the below steps.

    1. Copy the file from path vendor/magento/mdoule-catalog/view/frontend/layout/catalog_category_view.xml
    2. paste it into the path app/design/frontend/vendor/theme/Magento_Catalog/layout/catalog_category_view.xml
    3. add the code below body tag

      <move element="category.cms" destination ="content" after="category.product"/>
      
    4. 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

    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数