Breaking News
Home / Magento / How to remove page title (h1) from home page, cms_index_index.xml not working

How to remove page title (h1) from home page, cms_index_index.xml not working

Create a cms_index_index.xml file in “/app/design/frontend/(vendor)/(theme)/Magento_Theme/layout” and paste the following code –

<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="page.main.title" remove="true" />
</body>
</page>

For all other Pages create cms_page_view.xml and use the same code

Hits: 7

Leave a Reply