- This topic has 18 replies, 2 voices, and was last updated 1 year, 2 months ago by David.
July 14, 2022 at 9:22 pm #2283163David
When does GeneratePress Pro theme add h1 tags to the site header?July 14, 2022 at 10:22 pm #2283186Fernando Customer Support
I’m not sure I understand the question. To clarify, are you wanting to know how to add a H1 to the site header? If so, one approach is to use a Block Element: https://docs.generatepress.com/article/block-element-overview/
If you’re referring to something else, kindly let us know.July 14, 2022 at 10:24 pm #2283188David
NO, the question is simple. On some webpages GP adds h1 tags to the header and some webpages it does not. So my question is very easy to understand: When does GeneratePress Pro theme add h1 tags to the site header?
You know what the “site header” is and you know what “h1 tags” are.
Can you please help me?July 14, 2022 at 10:32 pm #2283192David
On some of the webpages there are h1 tags in the header. When does GeneratePress Pro theme add h1 tags to the site header?July 14, 2022 at 10:53 pm #2283204Fernando Customer Support
I see. That H1 seems to be from a Page Hero – Block Element. You can check this Element by viewing the page in the frontend, and then hovering on Elements in the admin bar, and then selecting the corresponding Block Element that’s a Page Hero: https://share.getcloudapp.com/BluGdlJD
site-headeris the part where your menu and logo is located: https://share.getcloudapp.com/RBumJZ09
In your reference site, the H1 is added under the site-header inside a Page Hero.
By default, H1 titles are added automatically as the entry-header inside the Content.
GeneratePress can also add H1 tags anywhere. From your reference site, in that specific location, it can be added through a Block Element – Page Hero, a Block Element hooked to after_ header, and a Header Element.
Hope this clarifies.July 14, 2022 at 10:56 pm #2283208David
Yes I see this: By default, H1 titles are added automatically as the entry-header inside the Content.
How can I fix (change) this. In my Block Element – Page Hero, the h1 is added and I do not see a way to change this. Can this be fixed?
Thank You.July 14, 2022 at 11:00 pm #2283211Fernando Customer Support
To clarify, what would you like to do? Turn it into an H2 or something else, delete it, or make the default H1 appear again?
Kindly let us know.July 14, 2022 at 11:02 pm #2283213David
I you see the About page it does not have this problem. I do not want an h1 added into the block header. Maybe have it like regular, say as in on the About page. <p> is fineJuly 14, 2022 at 11:05 pm #2283219David
To be clear I am using an Elements with a type “Header” and then using the Site Header section. How can I accomplish what I have now but without the h1 tags.July 14, 2022 at 11:15 pm #2283231Fernando Customer Support
In your homepage, you seem to have a Header Element, and a Block Element – Page Hero.
The H1 seems to be coming from the Block Element, not the Header Element. You can delete it from the Block Element.
Hover on Elements again in your admin bar and look for that specific Block Element with the H1.July 14, 2022 at 11:19 pm #2283234David
Wow, that is clearly not what I want.
In the Element Block Header which is the Page Hero using the after header hook there is an h1 tag. But that is the h1 tag that I need on the page.
The h1 tag inside the site header around my site title, is the one I do not want. Again if you see the About page the h1 tag is not around the site title.July 14, 2022 at 11:20 pm #2283235David
How do I remove the h1 tag around the site title on the front page?July 14, 2022 at 11:22 pm #2283236David
My question is: When does GeneratePress Pro theme add h1 tags to the site header?
How do I remove the h1 tag around the site title on the front page?
So why are you saying to remove the h1 inside the Block that comes after the header?July 14, 2022 at 11:32 pm #2283239Fernando Customer Support
Oh sorry, I didn’t notice the H1 site title in your site-header.
By default, that shouldn’t be an h1. GeneratePress shouldn’t be adding the site-title as an H1 either. It may be a third party plugin causing this.
As a first course of debugging, can you try #1 here?: https://docs.generatepress.com/article/debugging-tips/
It would be good to take a backup of your site before doing so.
Kindly let us know how it goes. Sorry for the misunderstanding.July 14, 2022 at 11:35 pm #2283240David
I already debug before contacting you. But thank you in case I forgot.
You said: Oh sorry, I didn’t notice the H1 site title in your site-header.
But my original question was: When does GeneratePress Pro theme add h1 tags to the site header?
Can you please help me with this?
- You must be logged in to reply to this topic.