- This topic has 18 replies, 2 voices, and was last updated 2 years, 2 months ago by David.
-
AuthorPosts
-
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 SupportHi David,
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 #2283188DavidNO, 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 #2283192DavidOn 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 SupportI 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
The
site-header
is the part where your menu and logo is located: https://share.getcloudapp.com/RBumJZ09In 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 #2283208DavidYes I see this: By default, H1 titles are added automatically as the entry-header inside the Content.
I agree.
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 SupportTo 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 #2283213DavidI 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 fine
July 14, 2022 at 11:05 pm #2283219DavidTo 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 SupportIn 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 #2283234DavidWow, 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 #2283235DavidHow do I remove the h1 tag around the site title on the front page?
July 14, 2022 at 11:22 pm #2283236DavidMy 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 SupportOh 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 #2283240DavidI 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?
-
AuthorPosts
- You must be logged in to reply to this topic.