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?
For removing the tittle from the home page you can just add <referenceBlock name="page. main. title" display="false"/> in your cms_index_index.
Go to Other Settings > Header > Welcome Text Under Other Settings, select Header. Under Header section, edit the Welcome Text field to change the default Magento welcome message.
Go to the Admin panel > Content > Pages > Choose the Homepage > In the field "Page Title" add a new title you want to show > click on Save button.
To remove a category, do as follows:Click on the category that you want to delete. In the example above, Training is the category chosen to be removed. Go to the Delete button that appears next to the Save button. Tap Delete and click “OK” in the dialog box that asks you to confirm the deletion.
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.
Seeing as still nobody's posted what to edit for category pages, the XML file to edit is in /vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
. The block to edit is pretty much the same as for CMS pages:
<referenceBlock name="page.main.title" display="false">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With