magento2magento-2.0

How to remove H1 title from CMS pages and category pages in Magento 2


I want to add the H1 title along with the description in the description filed for CMS pages and category pages.

How can I remove the H1 title for these pages but keep the H1 title for products pages?


Solution

  • For removing the tittle from the home page you can just add <referenceBlock name="page.main.title" display="false"/> in your cms_index_index.xml. You can also use display true and false from where you want.