Archived topic
Double H1 tag because of <h1 class ="entry-title"
3 replies · Started by Ignite UG & Co. KG on March 3, 2021
Dear Support,
I noticed a little problem on my website. I use Generatepress & Elementor.
Example: https://skibidifit.de/bellicon/
There are two h1-Tags in the Code. I choose the H1 by myself, it always is my first heading. But it seems as Generatepress adds a second H1 to my page: <h1 class="entry-title" itemprop="headline">Bellicon</h1>
So it looks like there are 2 H1 now which is bad for SEO. Is there a way to delete the automatically created h1 entry title for all my posts?
I found this: https://generatepress.com/forums/topic/h1-entry-title-tag-in-page-title-or-double-h1/ and added this https://gist.github.com/generatepress/261aa39f5e594c243c02 via Plugin "Code Snippets" but it didn't work.
Thank you in advance.
Marco
Hi there,
Make sure you have the Elements and Disable Element module enabled in Appearance > GeneratePress.
Then you can use a Layout Element:
https://docs.generatepress.com/article/layout-element-overview/
Select the Disable Content Title and set the Display Rules to Posts > All Posts.
Hi David,
thank you. I tried to do that and it looks like on some posts it worked, but on some posts it did not, like the skibidifit.de/bellicon above.
Could you maybe take a look at it? I will provide login-details. That'll be fine!
I checked that link and searched the source code and there is only 1 x H1 title on the pate.
Maybe it had been cached. Try checking it in an incognito browser.