cancel
Showing results for 
Search instead for 
Did you mean: 

How to display title h1 in the header (only on the homepage) ?

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

How to display title h1 in the header (only on the homepage) ?

I want to find a way to put a title h1 at the top only of the homepage.

4 REPLIES 4

Re: How to display title h1 in the header (only on the homepage) ?

Hi @thomas_rolland,

If you are managing home page from admin panel. Then you can do from admin as well.

Admin->Content->CMS->Pages-> Edit Home Page

I hope it will help you!

Re: How to display title h1 in the header (only on the homepage) ?

Hi @Vimal Kumar 

 

If I put h1 tag in the first line of Edit Home Page, it appears in the middle of the page:

01.png

 

 

 

2.png

 

If I add it with the publisher h1 will be present on all pages and there will be 2 tag h1 on the product sheets.
I need to find code that would:

If homepage then display balise and if not homepage then not display balise.

 

Re: How to display title h1 in the header (only on the homepage) ?

Hello @thomas_rolland 

 

That seems something top header part of your website, I am not sure your theme is allowing to edit. But you can surely try to look into the Admin->Content->CMS-> Static Block

Find header related block there,

 

Was my answer helpful? You can accept it as a solution.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer

Re: How to display title h1 in the header (only on the homepage) ?

Hi @theMageComp

Is it possible to incorporate condition into Static Block ?