如何在magneto2中使用xml删除版权块表单页面

Sur*_*hir 2 magento-2.0

我想在 Magneto2 中使用 XML 删除表单页脚。

我正在尝试使用以下 XML:

<hello_index_index>
  <reference name="root">
   <remove name="block.name" />
  </reference>
</hello_index_index>
Run Code Online (Sandbox Code Playgroud)

这是行不通的。

Ama*_*ari 8

在以下位置创建您的 XML 文件,如下view/frontend/hello_index_index.xml所示:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="empty" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"> 
   <!--this is use for remove copyright--->
   <referenceBlock name="copyright" remove="true"/>
</page>
Run Code Online (Sandbox Code Playgroud)