I’m searching for a way to have the H1 logo only for the homepage, and not for page and single post.
In fact, i made some modifications to move the entry title from H2 to H1, and it’s ok. But because of the H1 which is set on the header logo, i have now two H1 on both page and single, which is bad for SEO.
The H1 tag is only displayed on home page when you display site title in the header instead of logo.
We can’t display post titles in H1 tags because then the H1 tags will be duplicated on home page so please tell me where you want to display the H! tag on your site home page so that i can help you to achieve it.
maybe a good way to display a H1 tag on my front page will be just under the slider, like on sparkling for example https://colorlib.com/sparkling/ (the CTA)
If you could give me the code to apply, it would be perfect!!
Using the travelify theme I created a blog named www.itphobia.com.
I use h1 tag for each of my article.
But in SEO test it says that pages contain H1 tag but contents are blank.
The test report is like following:
<h1> Headings Status
Your page contains H1 headings but all of them have blank content.
How to Fix
How to fix - <h1> Headings Status
In order to pass this test you must indentify the most important topics from your page and insert those topics between <h1>…</h1> tags.
Example:
<h1>Important topic goes here</h1>
…
<h1>Another topic</h1>
To help us keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/travelify-support/ instead of replying on others thread as it makes the thread messy and hard to read.
If you want to you can also add reference of this thread in your newly created thread.
We would be more than happy to help you on your new thread.
Thank you for your quick answer
Yes it would be great indeed! In fact it would be the better solution. Is it possible to have it only for my front page? I guess you will set it in a php function like : “if front, then display site title within H1 tag” right?
From my side , i tried last week to use the solution of “negativ css text-indent”, to hide the site title, but afterwards, i read that it was considered as cloaking by google .So i removed it.