Archived topic
2 H1 tags were found.
11 replies · Started by JJ Smith on June 21, 2022
I got this error and need to figure out to remove it.
2 H1 tags were found. There should be precisely one H1 tag for the best SEO results on each page.
Any idea what the best way I can fix this is?
Thank you,
JJ Smith
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
The site is below in the private field.
Thank you,
JJ Smith
Can you disable the caching plugin so I can inspect the source code better?
Thanks.
I don't want to shut stuff off, to be honest.
I was just wondering if there was a way to shut down one of 2 H1 tags found on each page.
So I have an H1 tag on each page, and the title is set to invisible, which seems to be the issue.
Thank you,
JJ Smith
and the title is set to invisible
How are you setting it to invisible?
Can you make sure you are using the disable element method?
https://docs.generatepress.com/article/disable-elements-overview/
https://docs.generatepress.com/article/layout-element-overview/#disable-element
I am using CSS as displayed as none.
JJ Smith
I am using CSS as displayed as none.
That's the issue - CSS doesn't actually remove the HTML markup.
Try my suggestions above with the Disable Elements method.
I will give that a shot and get back to you.
Thank you,
JJ Smith
Sounds good.
Make sure to clear your caching plugin after :)
It is working great now!
Thank you,
JJ Smith
No problem :)